rdf best practice n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
RDF Best Practice PowerPoint Presentation
Download Presentation
RDF Best Practice

Loading in 2 Seconds...

play fullscreen
1 / 8

RDF Best Practice - PowerPoint PPT Presentation


  • 92 Views
  • Uploaded on

RDF Best Practice. Best Practice Recipes for Publishing RDF Vocabularies W3C Working Group Note 28. August 2008 - http://www.w3.org/TR/2008/NOTE-swbp-vocab-pub-20080828/. Publishing RDF Ontologies. Content Negotiation Dereferencable concept URIs HTTP 303 Redirects

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'RDF Best Practice' - alia


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
rdf best practice

RDF Best Practice

Best Practice Recipes for Publishing RDF Vocabularies

W3C Working Group Note 28. August 2008

-

http://www.w3.org/TR/2008/NOTE-swbp-vocab-pub-20080828/

publishing rdf ontologies
Publishing RDF Ontologies
  • Content Negotiation
  • Dereferencable concept URIs
  • HTTP 303 Redirects
  • Concept Name separated from the URI via slash (/) or hash (#)
content negotiation
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
dereferencable ontology uris
Dereferencable Ontology URIs
  • Example:
    • Access e-Freight Ontology: http://efreight.sti2.at/ontology/crs.owl
dereferencable concept uri
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
server side configuration
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

redirect to sparql query
Redirect to SPARQL Query
  • Server-side configuration (.htaccess file)

RewriteCond %{HTTP_ACCEPT} text/html

RewriteRule ^crs/(.+) http://dbpedia.org/$1 [R=303]

RewriteCond %{HTTP_ACCEPT} application/rdf\+xml

RewriteRule ^crs/(.+) http://dbpedia.org/sparql?query=DESCRIBE+<http://dbpedia.org/$1> [R=303]

summary
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