-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 283b9e5
Showing
93 changed files
with
223,147 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# 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 .jsonld | ||
# Rewrite engine setup | ||
RewriteEngine On | ||
#Change the path to the folder here | ||
RewriteBase /mo | ||
|
||
# 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-de.html [R=303,L] | ||
|
||
# Rewrite rule to serve JSON-LD content from the vocabulary URI if requested | ||
RewriteCond %{HTTP_ACCEPT} application/ld\+json | ||
RewriteRule ^$ 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 ^$ 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 ^$ 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 ^$ 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.rdf [R=303,L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!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-de.html">html</a></li><li><a href="ontology.jsonld">JSON-LD</a></li><li><a href="ontology.rdf">RDF/XML</a></li><li><a href="ontology.nt">N-Triples</a></li><li><a href="ontology.ttl">TTL</a></li></ul> | ||
|
||
</body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | ||
|
||
</head> | ||
|
||
<body> | ||
<div class="head"> | ||
<h1>Herkunft von Microscopy Ontology (MO) Dokumentation (https://w3id.org/pmd/mo/1.0.0)</h1> | ||
<ul> | ||
<li>Entwickler der Ontologie: https://orcid.org/0000-0002-3717-7104, https://orcid.org/0000-0002-7094-5371</li><li>Die Ontologie-Dokumentation ist Ergebnis der Anwendung vom <a href="https://github.com/dgarijo/Widoco">Widoco Tool</a> (das wiederum <a href="http://www.essepuntato.it/lode/">LODE</a> zur Generierung der Querverweise verwendet.</li> | ||
</ul> | ||
</div> | ||
<p>zurück zu <a href="..\index-de.html">Dokumentation</a>. <a href="provenance-de.ttl">TTL Format</a></p></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@prefix prov: <http://www.w3.org/ns/prov#> . | ||
@prefix dc: <http://purl.org/dc/terms/> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
@prefix : <> . | ||
<https://w3id.org/pmd/mo/1.0.0> a prov:Entity; | ||
dc:title "Microscopy Ontology (MO)"; | ||
prov:wasAttributedTo <https://orcid.org/0000-0002-3717-7104>; | ||
dc:creator <https://orcid.org/0000-0002-3717-7104>; | ||
prov:wasAttributedTo <https://orcid.org/0000-0002-7094-5371>; | ||
dc:creator <https://orcid.org/0000-0002-7094-5371>; | ||
prov:wasAttributedTo <https://github.com/dgarijo/Widoco/>,<http://www.essepuntato.it/lode/>; | ||
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | ||
|
||
</head> | ||
|
||
<body> | ||
<div class="head"> | ||
<h1>Provenance for Microscopy Ontology (MO) Documentation (https://w3id.org/pmd/mo/1.0.0)</h1> | ||
<ul> | ||
<li>Ontology created by: https://orcid.org/0000-0002-3717-7104, https://orcid.org/0000-0002-7094-5371</li><li>The ontology documentation was the result of using the <a href="https://github.com/dgarijo/Widoco">Widoco tool</a> (which itself uses <a href="http://www.essepuntato.it/lode/">LODE</a> for generating the crossreference section).</li> | ||
</ul> | ||
</div> | ||
<p>back to <a href="..\index-en.html">documentation</a>. <a href="provenance-en.ttl">TTL format</a></p></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@prefix prov: <http://www.w3.org/ns/prov#> . | ||
@prefix dc: <http://purl.org/dc/terms/> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
@prefix : <> . | ||
<https://w3id.org/pmd/mo/1.0.0> a prov:Entity; | ||
dc:title "Microscopy Ontology (MO)"; | ||
prov:wasAttributedTo <https://orcid.org/0000-0002-3717-7104>; | ||
dc:creator <https://orcid.org/0000-0002-3717-7104>; | ||
prov:wasAttributedTo <https://orcid.org/0000-0002-7094-5371>; | ||
dc:creator <https://orcid.org/0000-0002-7094-5371>; | ||
prov:wasAttributedTo <https://github.com/dgarijo/Widoco/>,<http://www.essepuntato.it/lode/>; | ||
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
About Widoco output | ||
=================== | ||
The purpose of Widoco is to reuse and integrate existing tools for documentation, plus the set of features listed below: | ||
* Separation of the sections of your html page so you can write them independently and replace only those needed. | ||
* Automatic annotation in RDF-a of the html produced. | ||
* Association of a provenance page which includes the history of your vocabulary (W3C PROV-O compliant). | ||
* Metadata extraction from the ontology plus the means to complete it on the fly when generating your ontology. | ||
* Guidelines on the main sections that your document should have and how to complete them. | ||
|
||
Widoco will create 3 different folders: | ||
| | ||
|-provenance (a folder including an html and RDF serialization of how the documentation page was created) | ||
|-resources (folder with the different resources) | ||
|-sections (folder with the different sections of the documentation, separated for easy editing. Just edit one and the main page will be updated) | ||
|
||
Completing ontology metadata. | ||
=================== | ||
Widoco uses the ontology metadata to update a configuration file. If you complete that configuration file (ended up widoco.conf), the tool will enhance your html with additional details, such as how to cite the document, previous revisions, icons with the licence, etc. | ||
|
||
Browser issues | ||
========== | ||
The result of executing Widoco is an html file. We have tested it in Mozilla, IE and Chrome, and when the page is stored in a server all the browsers work correctly. If you view the file locally, we recommend you to use Mozilla Firefox (or Internet Explorer, if you must). Google Chrome will not show the contents correctly, as it doesn't allow XMLHttpRequest without HTTP. If you want to view the page locally with Google Chrome you have two possibilities: | ||
|
||
a) Place the file in a server and access it via its URL (for example, put it in dropbox and access through its public url). | ||
|
||
b) Execute Chrome with the following commands : | ||
|
||
(WIN) chrome.exe --allow-file-access-from-files, | ||
|
||
(OSX) open /Applications/Google\ Chrome.app/ --args --allow-file-access-from-files | ||
|
||
(UNX) /usr/bin/google-chrome --allow-file-access-from-files | ||
|
||
Do you have a problem? open an issue at https://github.com/dgarijo/Widoco |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
body { | ||
text-align: justify; | ||
} | ||
|
||
h1 { | ||
line-height: 110%; | ||
} | ||
|
||
.hlist { | ||
border: 1px solid navy; | ||
padding:5px; | ||
background-color: #F4FFFF; | ||
} | ||
|
||
.hlist li { | ||
display: inline; | ||
display: inline-table; | ||
list-style-type: none; | ||
padding-right: 20px; | ||
|
||
} | ||
|
||
.entity { | ||
border: 1px solid navy; | ||
margin:5px 0px 5px 0px; | ||
padding: 5px; | ||
} | ||
|
||
.type-c { | ||
cursor:help; | ||
color:orange; | ||
} | ||
|
||
.type-op { | ||
cursor:help; | ||
color:navy; | ||
} | ||
|
||
.type-dp { | ||
cursor:help; | ||
color:green; | ||
} | ||
|
||
.type-ap { | ||
cursor:help; | ||
color:maroon; | ||
} | ||
|
||
.type-ni { | ||
cursor:help; | ||
color:brown; | ||
} | ||
|
||
.logic { | ||
color:purple; | ||
font-weight:bold; | ||
} | ||
|
||
h3 { | ||
margin-top: 3px; | ||
padding-bottom: 5px; | ||
border-bottom: 1px solid navy; | ||
} | ||
|
||
h2 { | ||
margin-top:40px; | ||
} | ||
|
||
.dotted { | ||
border-bottom: 1px dotted gray; | ||
} | ||
|
||
dt { | ||
margin-top:5px; | ||
} | ||
|
||
.description { | ||
border-top: 1px dashed gray; | ||
border-bottom: 1px dashed gray; | ||
background-color: rgb(242, 243, 244); | ||
margin-top:5px; | ||
padding-bottom:5px; | ||
} | ||
|
||
.description dl { | ||
background-color: rgb(242, 243, 244); | ||
} | ||
|
||
.description ul { | ||
padding-left: 12px; | ||
margin-top: 0px; | ||
} | ||
|
||
.backlink { | ||
font-size:10pt; | ||
text-align:right; | ||
float:right; | ||
color:black; | ||
padding: 2px; | ||
border: 1px dotted navy; | ||
background-color: #F4FFFF; | ||
} | ||
|
||
.imageblock { | ||
text-align: center; | ||
} | ||
|
||
.imageblock img { | ||
border:1px solid gray; | ||
} | ||
|
||
.endnote { | ||
margin-top: 40px; | ||
border-top: 1px solid gray; | ||
padding-top: 10px; | ||
text-align: center; | ||
color:gray; | ||
font-size:70%; | ||
} | ||
|
||
.literal { | ||
color:green; | ||
font-style:italic; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.