Skip to content

Commit

Permalink
Added JSON support
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Grubenmann committed Apr 11, 2019
1 parent 4d68bc1 commit 3351b8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion timebank/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Options -MultiViews
AddType application/rdf+xml .rdf
AddType application/rdf+xml .owl
AddType text/turtle .ttl
AddType application/n-triples .n3
AddType application/n-triples .nt
AddType application/ld+json .json

# Rewrite engine setup
RewriteEngine On
Expand Down
5 changes: 5 additions & 0 deletions timebank/0.1/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ AddType application/rdf+xml .rdf
AddType application/rdf+xml .owl
AddType text/turtle .ttl
AddType application/n-triples .nt
AddType application/ld+json .json

# Rewrite engine setup
RewriteEngine On
Expand All @@ -33,6 +34,10 @@ RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/turtle
RewriteRule ^(.*)$ https://tobiasgrubenmann.github.io/Ontologies/Timebank/ontology.ttl [R=303,L]

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

# Choose the default response
# ---------------------------

Expand Down

0 comments on commit 3351b8c

Please sign in to comment.