Skip to content

Commit

Permalink
update version of software ontology
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarijo committed Oct 29, 2019
1 parent 92c859d commit 3d26c75
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions okn/o/sd/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.2.0/index-en.html [R=303,L]
RewriteRule ^$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.3.0/index-en.html [R=303,L]

# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.2.0/ontology.json [R=303,L]
RewriteRule ^$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.3.0/ontology.json [R=303,L]

# Rewrite rule to serve RDF/XML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.2.0/ontology.xml [R=303,L]
RewriteRule ^$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.3.0/ontology.xml [R=303,L]

# Rewrite rule to serve N-Triples content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.2.0/ontology.nt [R=303,L]
RewriteRule ^$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.3.0/ontology.nt [R=303,L]

# Rewrite rule to serve TTL content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.2.0/ontology.ttl [R=303,L]
RewriteRule ^$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.3.0/ontology.ttl [R=303,L]


# Rewrite rules for any other version.
Expand Down Expand Up @@ -68,8 +68,8 @@ RewriteRule ^(.+)$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescri


RewriteCond %{HTTP_ACCEPT} .+
RewriteRule ^(.*)$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.2.0/406.html [R=406,L]
RewriteRule ^(.*)$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.3.0/406.html [R=406,L]
# Default response
# ---------------------------
# Rewrite rule to serve the RDF/XML content from the vocabulary URI by default
RewriteRule ^$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.2.0/ontology.xml [R=303,L]
RewriteRule ^$ https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.3.0/ontology.xml [R=303,L]

0 comments on commit 3d26c75

Please sign in to comment.