Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnToology update #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions OnToology/tests/tests.ttl/OnToology.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[owl2jsonld]
enable = True

[widoco]
enable = True
languages = en

[ar2dtool]
enable = True

[oops]
enable = True

16 changes: 16 additions & 0 deletions OnToology/tests/tests.ttl/context/context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"@context" : {
"desiredBehaviour" : {
"@id" : "http://w3id.org/def/vtc#desiredBehaviour"
},
"isRelatedToRequirement" : {
"@id" : "http://w3id.org/def/vtc#isRelatedToRequirement"
},
"description" : {
"@id" : "http://purl.org/dc/terms/description"
},
"TestCaseDesign" : {
"@id" : "http://w3id.org/def/vtc#TestCaseDesign"
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
digraph ar2dtool_diagram {
rankdir=LR;
size="1501"
"file:///home/ahmad/OnToology/test-case-4" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot17" [ label = "vtc:isRelatedToRequirement" ];
"file:///home/ahmad/OnToology/test-case-9" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot26" [ label = "vtc:isRelatedToRequirement" ];
"file:///home/ahmad/OnToology/test-case-13" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot31" [ label = "vtc:isRelatedToRequirement" ];
"file:///home/ahmad/OnToology/test-case-2" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot15" [ label = "vtc:isRelatedToRequirement" ];
"file:///home/ahmad/OnToology/test-case-7" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot24" [ label = "vtc:isRelatedToRequirement" ];
"file:///home/ahmad/OnToology/test-case-11" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot28" [ label = "vtc:isRelatedToRequirement" ];
"file:///home/ahmad/OnToology/test-case-5" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot21" [ label = "vtc:isRelatedToRequirement" ];
"file:///home/ahmad/OnToology/test-case-14" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot32" [ label = "vtc:isRelatedToRequirement" ];
"file:///home/ahmad/OnToology/test-case-3" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot16" [ label = "vtc:isRelatedToRequirement" ];
"file:///home/ahmad/OnToology/test-case-8" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot25" [ label = "vtc:isRelatedToRequirement" ];
"file:///home/ahmad/OnToology/test-case-12" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot29" [ label = "vtc:isRelatedToRequirement" ];
"file:///home/ahmad/OnToology/test-case-1" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot1" [ label = "vtc:isRelatedToRequirement" ];
"file:///home/ahmad/OnToology/test-case-6" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot22" [ label = "vtc:isRelatedToRequirement" ];
"file:///home/ahmad/OnToology/test-case-10" -> "http://vicinity.iot.linkeddata.es/vicinity/requirements/report-wot.html#wot27" [ label = "vtc:isRelatedToRequirement" ];

}

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
digraph ar2dtool_diagram {
rankdir=LR;
size="1000"

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns/graphml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns/graphml http://www.yworks.com/xml/schema/graphml/1.0/ygraphml.xsd">
<key for="node" id="d0" yfiles.type="nodegraphics" />
<key attr.name="description" attr.type="string" for="node" id="d1" />
<key for="edge" id="d2" yfiles.type="edgegraphics" />
<key attr.name="description" attr.type="string" for="edge" id="d3" />
<key for="graphml" id="d4" yfiles.type="resources" />
<graph edgedefault="directed" id="G" parse.edges="0" parse.nodes="0" parse.order="free">
</graph>
</graphml>
42 changes: 42 additions & 0 deletions OnToology/tests/tests.ttl/diagrams/config/ar2dtool-class.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
pathToDot=/usr/bin/dot;
pathToTempDir=/home/ahmad/temp;

imageSize=1501;
rankdir=LR;

########
#shapes#
########

#classShape=diamond;
#individualShape=diamond;
#literalShape=box;
#arrowhead=normal;
#arrowtail=normal;
#arrowdir=forward;

########
#colors#
########

classColor=orange;
#individualColor=orange;
#literalColor=blue;
#arrowColor=blue;

#############
#RDF options#
#############

nodeNameMode=prefix;
ignoreLiterals=true;
ignoreRdfType=true;
synthesizeObjectProperties=true;

#######
#lists#
#######

#ignoreElementsList=[];

ignoreElementList=[<http://www.w3.org/2000/01/rdf-schema#subClassOf,http://www.w3.org/2000/01/rdf-schema#isDefinedBy,http://www.w3.org/2002/07/owl#inverseOf>];
51 changes: 51 additions & 0 deletions OnToology/tests/tests.ttl/diagrams/config/ar2dtool-taxonomy.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
pathToDot=/usr/bin/dot;
pathToTempDir=/home/ahmad/temp;

imageSize=1000;
rankdir=LR;

########
#shapes#
########

#classShape=diamond;
#individualShape=diamond;
#literalShape=box;
#arrowhead=normal;
#arrowtail=normal;
#arrowdir=forward;

########
#colors#
########

#classColor=orange;
#individualColor=orange;
#literalColor=blue;
#arrowColor=blue;

#######
#files#
#######

generateGvFile=true;
generateGraphMLFile=false;

#############
#RDF options#
#############

nodeNameMode=prefix;
ignoreLiterals=true;
ignoreRdfType=false;
synthesizeObjectProperties=false;

#######
#lists#
#######

includeOnlyElementList=[
<
http://www.w3.org/2000/01/rdf-schema#subClassOf
>
];
47 changes: 47 additions & 0 deletions OnToology/tests/tests.ttl/documentation/.htaccess
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 .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 JSON-LD content from the vocabulary URI if requested
RewriteCond %{HTTP_ACCEPT} application/ld\+json
RewriteRule ^$ 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 ^$ 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 ^$ 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.xml [R=303,L]
10 changes: 10 additions & 0 deletions OnToology/tests/tests.ttl/documentation/406.html
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-en.html">html</a></li><li><a href="ontology.json">JSON-LD</a></li><li><a href="ontology.xml">RDF/XML</a></li><li><a href="ontology.nt">N-Triples</a></li><li><a href="ontology.ttl">TTL</a></li></ul>

</body></html>
91 changes: 91 additions & 0 deletions OnToology/tests/tests.ttl/documentation/index-en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="resources/primer.css" media="screen" /> <link rel="stylesheet" href="resources/rec.css" media="screen" /> <link rel="stylesheet" href="resources/extra.css" media="screen" /> <link rel="stylesheet" href="resources/owl.css" media="screen" /> <title>Ontology Documentation generated by WIDOCO</title>


<!-- SCHEMA.ORG METADATA -->
<script type="application/ld+json">{"@context":"http://schema.org","@type":"TechArticle","url":"[Ontology URI]","image":"http://vowl.visualdataweb.org/webvowl/#iri=[Ontology URI]","name":"[Ontology URI]", "headline":"Document describing the ontology [Ontology URI]", "datePublished":"Wed Jan 30 17:12:05 UTC 2019"}</script>

<script src="resources/jquery.js"></script>
<script src="resources/marked.min.js"></script>
<script>
function loadHash() {
jQuery(".markdown").each(function(el){jQuery(this).after(marked(jQuery(this).text())).remove()});
var hash = location.hash;
if($(hash).offset()!=null){
$('html, body').animate({scrollTop: $(hash).offset().top}, 0);
}
loadTOC();
}
function loadTOC(){
//process toc dynamically
var t='<h2>Table of contents</h2><ul>';i = 1;j=0;
jQuery(".list").each(function(){
if(jQuery(this).is('h2')){
if(j>0){
t+='</ul>';
j=0;
}
t+= '<li>'+i+'. <a href=#'+ jQuery(this).attr('id')+'>'+ jQuery(this).ignore("span").text()+'</a></li>';
i++;
}
if(jQuery(this).is('h3')){
if(j==0){
t+='<ul>';
}
j++;
t+= '<li>'+(i-1)+'.'+j+'. '+'<a href=#'+ jQuery(this).attr('id')+'>'+ jQuery(this).ignore("span").text()+'</a></li>';
}
});
t+='</ul>';
$("#toc").html(t);
}
$.fn.ignore = function(sel){
return this.clone().find(sel||">*").remove().end();
}; $(function(){
$("#abstract").load("sections/abstract-en.html");
$("#introduction").load("sections/introduction-en.html");
$("#overview").load("sections/overview-en.html");
$("#description").load("sections/description-en.html");
$("#references").load("sections/references-en.html");
$("#crossref").load("sections/crossref-en.html", null, loadHash);
});
</script>
</head>

<body>
<div class="container">
<div class="head">
<div style="float:right">language <a href="index-en.html"><b>en</b></a> </div>


<dl>
<dt>Download serialization:</dt><dd><span><a href="ontology.json" target="_blank"><img src="https://img.shields.io/badge/Format-JSON_LD-blue.svg" alt="JSON-LD" /></a> </span><span><a href="ontology.xml" target="_blank"><img src="https://img.shields.io/badge/Format-RDF/XML-blue.svg" alt="RDF/XML" /></a> </span><span><a href="ontology.nt" target="_blank"><img src="https://img.shields.io/badge/Format-N_Triples-blue.svg" alt="N-Triples" /></a> </span><span><a href="ontology.ttl" target="_blank"><img src="https://img.shields.io/badge/Format-TTL-blue.svg" alt="TTL" /></a> </span></dd><dt>License: </dt><dd><a href="http://insertlicenseURIhere.org" target="_blank"><img src="https://img.shields.io/badge/License-license%20name%20goes%20here-blue.svg" alt="http://insertlicenseURIhere.org" /></a>
</dd></dl>

<a href="provenance/provenance-en.html" target="_blank">Provenance of this page</a><hr/>
</div>
<div class="status">
<div>
<span>Ontology Specification Draft</span>
</div>
</div> <div id="abstract"></div>
<div id="toc"></div> <div id="introduction"></div>
<div id="overview"></div>
<div id="description"></div>
<div id="crossref"></div>
<div id="references"></div>
<html>
<div id="acknowledgements">
<h2 id="ack" class="list">Acknowledgements <span class="backlink"> back to <a href="#toc">ToC</a></span></h2>
<p>
The authors would like to thank <a href="http://www.essepuntato.it/">Silvio Peroni</a> for developing <a href="http://www.essepuntato.it/lode">LODE</a>, a Live OWL Documentation Environment, which is used for representing the Cross Referencing Section of this document and <a href="https://w3id.org/people/dgarijo">Daniel Garijo</a> for developing <a href="https://github.com/dgarijo/Widoco">Widoco</a>, the program used to create the template used in this documentation.</p>
</div>

</html>

</div>
</body>
</html>
Loading