Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: perma-id/w3id.org
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: EdliraK/w3id.org
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 4 commits
  • 4 files changed
  • 1 contributor

Commits on Jun 14, 2022

  1. Create README.MD

    EdliraK authored Jun 14, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    239476a View commit details
  2. Add files via upload

    EdliraK authored Jun 14, 2022
    Copy the full SHA
    d6e53f7 View commit details
  3. Create README.MD

    EdliraK authored Jun 14, 2022
    Copy the full SHA
    756d4a7 View commit details
  4. Add files via upload

    EdliraK authored Jun 14, 2022
    Copy the full SHA
    5858c02 View commit details
Showing with 94 additions and 0 deletions.
  1. +45 −0 oho-cost/.htaccess
  2. +2 −0 oho-cost/README.MD
  3. +45 −0 oho-pro/.htaccess
  4. +2 −0 oho-pro/README.MD
45 changes: 45 additions & 0 deletions oho-cost/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Turn off MultiViews
Options -MultiViews

# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
AddType application/rdf+xml .owl
AddType text/turtle .ttl
AddType application/n-triples .n3
AddType application/ld+json .json
# Rewrite engine setup
RewriteEngine On

# Rewrite rule to serve HTML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^$ https://github.com/EdliraK/oho/blob/main/oho-cost/ontology.jsonld/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://github.com/EdliraK/oho/blob/main/oho-cost/ontology.jsonld/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://github.com/EdliraK/oho/blob/main/oho-cost/ontology.jsonld/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://github.com/EdliraK/oho/blob/main/oho-cost/ontology.jsonld/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://github.com/EdliraK/oho/blob/main/oho-cost/ontology.jsonld/ontology.ttl [R=303,L]

RewriteCond %{HTTP_ACCEPT} .+
RewriteRule ^$ 406.html [R=406,L]
# Default response
# ---------------------------
# Rewrite rule to serve the RDF/XML content from the vocabulary URI by default
RewriteRule ^$ https://github.com/EdliraK/oho/blob/main/oho-cost/ontology.jsonld/ontology.xml [R=303,L]
2 changes: 2 additions & 0 deletions oho-cost/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
OHO-Cost: An Offsite Housing Ontology for Life Cycle Cost
edlira.vakaj@bcu.ac.uk
45 changes: 45 additions & 0 deletions oho-pro/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Turn off MultiViews
Options -MultiViews

# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
AddType application/rdf+xml .owl
AddType text/turtle .ttl
AddType application/n-triples .n3
AddType application/ld+json .json
# Rewrite engine setup
RewriteEngine On

# Rewrite rule to serve HTML content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^$ https://edlirak.github.io/oho-pro/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://edlirak.github.io/oho-pro/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://edlirak.github.io/oho-pro/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://edlirak.github.io/oho/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://edlirak.github.io/oho-pro/ontology.ttl [R=303,L]

RewriteCond %{HTTP_ACCEPT} .+
RewriteRule ^$ 406.html [R=406,L]
# Default response
# ---------------------------
# Rewrite rule to serve the RDF/XML content from the vocabulary URI by default
RewriteRule ^$ https://edlirak.github.io/oho-pro/ontology.xml [R=303,L]
2 changes: 2 additions & 0 deletions oho-pro/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
OHO-Pro: An Offsite Housing Ontology for Production
Edlira.Vakaj@bcu.ac.uk