Commit 5951267d authored by María's avatar María Committed by GitHub
Browse files

Merge pull request #4 from OnToologyUser/master

OnToology update
parents 981f9037 02771531
Loading
Loading
Loading
Loading
+43 −0
Original line number Original line Diff line number Diff line
# 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
#Change the path to the folder here
RewriteBase /documentation 

# 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 ^$ index-en.html [R=303,L]

# Rewrite rule to serve N-Triples content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/n-triples
RewriteRule ^$ ontology.n3 [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 ^$ ontology.xml [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 ^$ 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 ^$ ontology.xml [R=303,L]
 No newline at end of file
+10 −0
Original line number Original line Diff line number Diff line
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>406 Not Acceptable</title>
</head>
<body>
<h1>Not Acceptable</h1>
<p>An appropriate representation of the requested resource could not be found on this server.</p>
 Available variants:<ul><li><a href="index-en.html">html</a></li><li><a href="ontology.n3">N-Triples</a></li><li><a href="ontology.xml">RDF/XML</a></li><li><a href="ontology.ttl">TTL</a></li></ul>

</body></html>
 No newline at end of file
+6 −5
Original line number Original line Diff line number Diff line
@@ -37,15 +37,16 @@ function loadHash() {
<dl><dt>Authors:</dt>
<dl><dt>Authors:</dt>
<dd><a property="dc:creator schema:author prov:wasAttributedTo" resource="http://purl.org/net/mpoveda" href="http://purl.org/net/mpoveda">http://purl.org/net/mpoveda</a></dd><dd><a property="dc:creator schema:author prov:wasAttributedTo" resource="http://www.garcia-castro.com/foaf.rdf#me" href="http://www.garcia-castro.com/foaf.rdf#me">http://www.garcia-castro.com/foaf.rdf#me</a></dd></dl>
<dd><a property="dc:creator schema:author prov:wasAttributedTo" resource="http://purl.org/net/mpoveda" href="http://purl.org/net/mpoveda">http://purl.org/net/mpoveda</a></dd><dd><a property="dc:creator schema:author prov:wasAttributedTo" resource="http://www.garcia-castro.com/foaf.rdf#me" href="http://www.garcia-castro.com/foaf.rdf#me">http://www.garcia-castro.com/foaf.rdf#me</a></dd></dl>


<dl><dt>Publisher:</dt>
<dl><dt>Download serialization:</dt><dd><span><a href="ontology.n3" target="_blank"><img src="https://img.shields.io/badge/Format-N_Triples-blue.svg"</img></a> </span><span><a href="ontology.xml" target="_blank"><img src="https://img.shields.io/badge/Format-RDF/XML-blue.svg"</img></a> </span><span><a href="ontology.ttl" target="_blank"><img src="https://img.shields.io/badge/Format-TTL-blue.svg"</img></a> </span></dd></dl><dl><dt>License: </dt><dd><a rel="license" href="http://purl.org/NET/rdflicense/cc-by4.0" target="_blank"><img src ="https://img.shields.io/badge/License-null-blue.svg"</img></a>
<dd><a href=http://www.oeg-upm.net/ target="_blank">http://www.oeg-upm.net/</a></dd></dl>
<dl><dt>Download serialization:</dt><dd><span><a href="ontology.n3" target="_blank"><img src="https://img.shields.io/badge/Format-N_Triples-blue.svg"</img></a> </span><span><a href="ontology.xml" target="_blank"><img src="https://img.shields.io/badge/Format-RDF/XML-blue.svg"</img></a> </span><span><a href="ontology.ttl" target="_blank"><img src="https://img.shields.io/badge/Format-TTL-blue.svg"</img></a> </span></dd></dl><dl><dt>License: </dt><dd><a rel="license" href="http://purl.org/NET/rdflicense/cc-by4.0" target="_blank"><img src ="https://img.shields.io/badge/License-license name goes here-blue.svg"</img></a>
<span property="dc:license" resource="http://purl.org/NET/rdflicense/cc-by4.0"></span>
<span property="dc:license" resource="http://purl.org/NET/rdflicense/cc-by4.0"></span>
</dd></dl><dl><a href="provenance/provenance-en.html" target="_blank">Provenance of this page</a></dl><hr/>
<a property="dc:rights" href="http://purl.org/NET/rdflicense/cc-by4.0" rel="license" target="_blank">
<img src="null" style="border-width:0" alt="License"></img>
</a>
<br/></dd></dl><dl><a href="provenance/provenance-en.html" target="_blank">Provenance of this page</a></dl><hr/>
</div>
</div>
<div class="status">
<div class="status">
<div>
<div>
<span>Ontology Specification Draft</span>
<span>Specification Draft</span>
</div>
</div>
</div>     <div id="abstract"></div>
</div>     <div id="abstract"></div>
<div id="toc"><h2>Table of contents</h2>
<div id="toc"><h2>Table of contents</h2>
+1275 −1275

File changed.

Preview size limit exceeded, changes collapsed.

+380 −380

File changed.

Preview size limit exceeded, changes collapsed.

Loading