3. www.sti-innsbruck.at
Content Negotiation
• Client specifies preferred format (in HTTP Header), e.g.
– Accept: application/rdf+xml
– Accept: application/xhtml+xml, text/html
• Fallback type must be specified
5. www.sti-innsbruck.at
Dereferencable Concept URI
• Example:
− GET the class Shipment:
http://efreight.sti2.at/ontology/crs.owl#Shipment
− Redirect to vocabulary URI:
http://efreight.sti2.at/ontology/crs.owl
6. www.sti-innsbruck.at
Server-Side Configuration
• .htaccess for ‘hash namespaces‘, e.g. http://efreight.sti2.at/ontology/crs.owl#Shipment
• AddType application/rdf+xml .owl
• RewriteEngine On
• RewriteBase /crs
• RewriteRule ^crs$ crs.owl
• .htaccess for ‘slash namespaces’, e.g. http://efreight.sti2.at/ontology/crs/Shipment
• AddType application/rdf+xml .owl
• RewriteEngine On
• RewriteBase /crs
• RewriteRule ^crs/.+ crs/ [R=303]
• RewriteRule ^crs/$ crs.owl
8. www.sti-innsbruck.at
Summary
• Dereferencable URIs for all concept in the ontology
• 303 Redirect to the Ontology if a concept is accessed
• Possible to separate the namespace with a slash (/) or a hash (#)
• Content Negotiation with fallback type
• Redirecting to SPARQL Query