Editing URL URI URN Implimentations

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
[[category:Geometry Service]]
+
{{DesignDocument}}
  
The formal way to specify the URL of a directory or concrete resource in a Geometry Service repository is as follows:
+
cad://dloman@fe80::21b:63ff:fe03:3cdf%en1/hardware/fasteners/9.16th/3in/aluminum/bolt.g/
  
  gs://host.of.geometry.service[:port]/name[:revision]/name[:revision]/...etc[:revision}[/]
+
   
 +
  
'''[port]''' Port is an optional paramater, default is 5309.
+
cad://dloman@sassyhost/hardware/fasteners/bolts.g/9.16th/3inch/aluminum/dwaynesbolt/bolt01.s
 
+
cad://user  @hostname /dir    /dir    /db    /comb  /comb /comb    /region    /solid
'''[revision]''' Revision is an optional per path step parameter, default is HEAD.
+
  cad://user  @hostname /comb    /comb    /comb  /comb  /comb /comb    /region    /solid
 
+
'''[/]''' A trailing backslash indicates a directory, whereas the absense of a backslash indicates a concrete resource.
+
<br />
+
<br />
+
  cad://dloman@sassyhost/hardware/fasteners/bolts/9.16th/3inch/aluminum/dwaynesbolt/bolt01.s
----
+
  cad://dloman@sassyhost/hardware.g/fasteners.g/bolts.g/9.16th.g/3inch.g/aluminum.g/dwaynesbolt.g/bolt01.s.g
===Examples===
 
 
 
Requesting
 
  gs://geoserv.brlcad.org/wheeled/civilian/cars/sports/lotus/  
 
would return a directory listing.
 
<br />
 
<br />
 
<br />
 
Where as requesting
 
  gs://geoserv.brlcad.org/wheeled/civilian/cars/sports/lotus/elise.g
 
would return valid geometry.
 
<br />
 
<br />
 
<br />
 
and requesting
 
  gs://geoserv.brlcad.org/wheeled/civilian/cars/sports/lotus/elise.png
 
would return a PNG image of the associated geometry.
 

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)