Skip to content

Commit

Permalink
add glass digital sub-path
Browse files Browse the repository at this point in the history
we choose 'glass-ontology' over 'go' because the latter is very ambiguous

Refs: materialdigital/glasdigital-ontology#6
  • Loading branch information
SimonStier committed Aug 20, 2023
1 parent 688d409 commit bf2b551
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pmd/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,30 @@ RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml
RewriteRule ^co(.*)$ https://materialdigital.github.io/core-ontology/index-en.html [R=303,L]
RewriteRule ^glass-ontology(.*)$ https://materialdigital.github.io/glasdigital-ontology/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 ^co(.*)$ https://materialdigital.github.io/core-ontology/ontology.jsonld [R=303,L]
RewriteRule ^glass-ontology(.*)$ https://materialdigital.github.io/glasdigital-ontology/ontology.jsonld [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 ^co(.*)$ https://materialdigital.github.io/core-ontology/ontology.rdf [R=303,L]
RewriteRule ^glass-ontology(.*)$ https://materialdigital.github.io/glasdigital-ontology/ontology.rdf [R=303,L]

# Rewrite rule to serve N-Triples content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^co(.*)$ https://materialdigital.github.io/core-ontology/ontology.nt [R=303,L]
RewriteRule ^glass-ontology(.*)$ https://materialdigital.github.io/glasdigital-ontology/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 ^co(.*)$ https://materialdigital.github.io/core-ontology/ontology.ttl [R=303,L]
RewriteRule ^glass-ontology(.*)$ https://materialdigital.github.io/glasdigital-ontology/ontology.ttl [R=303,L]

#RewriteCond %{HTTP_ACCEPT} .+
#RewriteRule ^$ https://materialdigital.github.io/core-ontology/406.html [R=406,L]
Expand Down
4 changes: 3 additions & 1 deletion pmd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
This [W3ID](https://w3id.org) provides a persistent URI namespace for the platform material digital vocabularies.

## Uses
This namespace represents a general ontology for the platform material digital.
This namespace represents a general ontology namespace for the platform material digital while subpaths point to specific vocabularies, currently:
- `co`: PMD Core Ontology (PMDco)
- `glass-ontology`: Glass Digital Ontology (PMDgo)

## Contact
Current maintainers are:
Expand Down

0 comments on commit bf2b551

Please sign in to comment.