Loading SemanticAPI/src/main/java/cz/muni/fi/lasaris/sbms/semantics/logic/TdbConnector.java +2 −4 Original line number Diff line number Diff line package cz.muni.fi.lasaris.sbms.semantics.logic; import java.io.ByteArrayOutputStream; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Collections; import java.util.GregorianCalendar; Loading Loading @@ -54,12 +52,12 @@ public class TdbConnector { model.close(); } /* Path currentRelativePath = Paths.get(""); String s = currentRelativePath.toAbsolutePath().toString(); logger.debug("Current relative path is: " + s); logger.debug("User dir is: " + System.getProperty("user.dir")); */ GregorianCalendar d = new GregorianCalendar(); dataset.begin(ReadWrite.READ); // Get model inside the transaction Loading SemanticAPI/src/main/resources/RDF/owl.owl 0 → 100644 +552 −0 File added.Preview size limit exceeded, changes collapsed. Show changes SemanticAPI/src/main/resources/RDF/rdf-schema.rdf 0 → 100644 +109 −0 Original line number Diff line number Diff line @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix dc: <http://purl.org/dc/elements/1.1/> . <http://www.w3.org/2000/01/rdf-schema#> a owl:Ontology ; dc:title "The RDF Schema vocabulary (RDFS)" . rdfs:Resource a rdfs:Class ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "Resource" ; rdfs:comment "The class resource, everything." . rdfs:Class a rdfs:Class ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "Class" ; rdfs:comment "The class of classes." ; rdfs:subClassOf rdfs:Resource . rdfs:subClassOf a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "subClassOf" ; rdfs:comment "The subject is a subclass of a class." ; rdfs:range rdfs:Class ; rdfs:domain rdfs:Class . rdfs:subPropertyOf a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "subPropertyOf" ; rdfs:comment "The subject is a subproperty of a property." ; rdfs:range rdf:Property ; rdfs:domain rdf:Property . rdfs:comment a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "comment" ; rdfs:comment "A description of the subject resource." ; rdfs:domain rdfs:Resource ; rdfs:range rdfs:Literal . rdfs:label a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "label" ; rdfs:comment "A human-readable name for the subject." ; rdfs:domain rdfs:Resource ; rdfs:range rdfs:Literal . rdfs:domain a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "domain" ; rdfs:comment "A domain of the subject property." ; rdfs:range rdfs:Class ; rdfs:domain rdf:Property . rdfs:range a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "range" ; rdfs:comment "A range of the subject property." ; rdfs:range rdfs:Class ; rdfs:domain rdf:Property . rdfs:seeAlso a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "seeAlso" ; rdfs:comment "Further information about the subject resource." ; rdfs:range rdfs:Resource ; rdfs:domain rdfs:Resource . rdfs:isDefinedBy a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:subPropertyOf rdfs:seeAlso ; rdfs:label "isDefinedBy" ; rdfs:comment "The defininition of the subject resource." ; rdfs:range rdfs:Resource ; rdfs:domain rdfs:Resource . rdfs:Literal a rdfs:Class ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "Literal" ; rdfs:comment "The class of literal values, eg. textual strings and integers." ; rdfs:subClassOf rdfs:Resource . rdfs:Container a rdfs:Class ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "Container" ; rdfs:subClassOf rdfs:Resource ; rdfs:comment "The class of RDF containers." . rdfs:ContainerMembershipProperty a rdfs:Class ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "ContainerMembershipProperty" ; rdfs:comment """The class of container membership properties, rdf:_1, rdf:_2, ..., all of which are sub-properties of 'member'.""" ; rdfs:subClassOf rdf:Property . rdfs:member a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "member" ; rdfs:comment "A member of the subject resource." ; rdfs:domain rdfs:Resource ; rdfs:range rdfs:Resource . rdfs:Datatype a rdfs:Class ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "Datatype" ; rdfs:comment "The class of RDF datatypes." ; rdfs:subClassOf rdfs:Class . <http://www.w3.org/2000/01/rdf-schema#> rdfs:seeAlso <http://www.w3.org/2000/01/rdf-schema-more> . SemanticAPI/src/main/resources/log4j.properties +1 −0 Original line number Diff line number Diff line # Root logger option log4j.rootLogger=INFO, stdout log4j.logger.cz.muni.fi.lasaris.sbms.semantics=DEBUG log4j.logger.org.apache.jena=DEBUG # Direct log messages to stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender Loading SemanticAPI/src/main/resources/ont-policy.rdf +15 −13 Original line number Diff line number Diff line Loading @@ -47,8 +47,8 @@ <OntologySpec> <!-- local version of the OWL language ontology (in OWL) --> <publicURI rdf:resource="http://www.w3.org/2002/07/owl" /> <!-- uncomment the following line to re-direct attempts to http get the file <altURL rdf:resource="file:vocabularies/owl.owl" /--> <!-- uncomment the following line to re-direct attempts to http get the file /--> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\owl.owl" <language rdf:resource="http://www.w3.org/2002/07/owl" /> <prefix rdf:datatype="&xsd;string">owl</prefix> </OntologySpec> Loading @@ -56,40 +56,42 @@ <OntologySpec> <!-- local version of the RDFS vocabulary --> <publicURI rdf:resource="http://www.w3.org/2000/01/rdf-schema" /> <!-- uncomment the following line to re-direct attempts to http get the file <altURL rdf:resource="file:vocabularies/rdf-schema.rdf" /--> <!-- uncomment the following line to re-direct attempts to http get the file /--> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\rdf-schema.rdf" <language rdf:resource="http://www.w3.org/2000/01/rdf-schema" /> <prefix rdf:datatype="&xsd;string">rdfs</prefix> </OntologySpec> <OntologySpec> <publicURI rdf:resource="http://is.muni.cz/www/255658/sbms/v2_0/SemanticBMS" /> <altURL rdf:resource="file:/apache-tomcat-9.0.0.M19/webapps/sbms/WEB-INF/classes/RDF/SemanticBMS.rdf" /> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\SemanticBMS.rdf" /> </OntologySpec> <OntologySpec> <publicURI rdf:resource="http://is.muni.cz/www/255658/sbms/v2_0/SemanticBIM" /> <altURL rdf:resource="file:/apache-tomcat-9.0.0.M19/webapps/sbms/WEB-INF/classes/RDF/SemanticBIM.rdf" /> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\SemanticBIM.rdf" /> </OntologySpec> <OntologySpec> <publicURI rdf:resource="http://purl.oclc.org/NET/muo/ucum/" /> <altURL rdf:resource="file:/apache-tomcat-9.0.0.M19/webapps/sbms/WEB-INF/classes/RDF/ucum-instances.rdf" /> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\ucum-instances.rdf" /> </OntologySpec> <OntologySpec> <publicURI rdf:resource="http://www.loa.istc.cnr.it/ontologies/DUL.owl" /> <altURL rdf:resource="file:/xapache-tomcat-9.0.0.M19/webapps/sbms/WEB-INF/classes/RDF/DUL.rdf" /> <publicURI rdf:resource="http://purl.oclc.org/NET/muo/muo-vocab.owl" /> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\muo-vocab.rdf" /> </OntologySpec> <OntologySpec> <publicURI rdf:resource="http://purl.oclc.org/NET/ssnx/ssn" /> <altURL rdf:resource="file:/xapache-tomcat-9.0.0.M19/webapps/sbms/WEB-INF/classes/RDF/ssn.rdf" /> <publicURI rdf:resource="http://www.loa.istc.cnr.it/ontologies/DUL.owl" /> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\DUL.rdf" /> </OntologySpec> <OntologySpec> <publicURI rdf:resource="http://purl.oclc.org/NET/muo/muo-vocab.owl" /> <altURL rdf:resource="file:/xapache-tomcat-9.0.0.M19/webapps/sbms/WEB-INF/classes/RDF/muo-vocab.rdf" /> <publicURI rdf:resource="http://purl.oclc.org/NET/ssnx/ssn" /> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\ssn.rdf" /> </OntologySpec> </rdf:RDF> No newline at end of file Loading
SemanticAPI/src/main/java/cz/muni/fi/lasaris/sbms/semantics/logic/TdbConnector.java +2 −4 Original line number Diff line number Diff line package cz.muni.fi.lasaris.sbms.semantics.logic; import java.io.ByteArrayOutputStream; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Collections; import java.util.GregorianCalendar; Loading Loading @@ -54,12 +52,12 @@ public class TdbConnector { model.close(); } /* Path currentRelativePath = Paths.get(""); String s = currentRelativePath.toAbsolutePath().toString(); logger.debug("Current relative path is: " + s); logger.debug("User dir is: " + System.getProperty("user.dir")); */ GregorianCalendar d = new GregorianCalendar(); dataset.begin(ReadWrite.READ); // Get model inside the transaction Loading
SemanticAPI/src/main/resources/RDF/owl.owl 0 → 100644 +552 −0 File added.Preview size limit exceeded, changes collapsed. Show changes
SemanticAPI/src/main/resources/RDF/rdf-schema.rdf 0 → 100644 +109 −0 Original line number Diff line number Diff line @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix dc: <http://purl.org/dc/elements/1.1/> . <http://www.w3.org/2000/01/rdf-schema#> a owl:Ontology ; dc:title "The RDF Schema vocabulary (RDFS)" . rdfs:Resource a rdfs:Class ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "Resource" ; rdfs:comment "The class resource, everything." . rdfs:Class a rdfs:Class ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "Class" ; rdfs:comment "The class of classes." ; rdfs:subClassOf rdfs:Resource . rdfs:subClassOf a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "subClassOf" ; rdfs:comment "The subject is a subclass of a class." ; rdfs:range rdfs:Class ; rdfs:domain rdfs:Class . rdfs:subPropertyOf a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "subPropertyOf" ; rdfs:comment "The subject is a subproperty of a property." ; rdfs:range rdf:Property ; rdfs:domain rdf:Property . rdfs:comment a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "comment" ; rdfs:comment "A description of the subject resource." ; rdfs:domain rdfs:Resource ; rdfs:range rdfs:Literal . rdfs:label a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "label" ; rdfs:comment "A human-readable name for the subject." ; rdfs:domain rdfs:Resource ; rdfs:range rdfs:Literal . rdfs:domain a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "domain" ; rdfs:comment "A domain of the subject property." ; rdfs:range rdfs:Class ; rdfs:domain rdf:Property . rdfs:range a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "range" ; rdfs:comment "A range of the subject property." ; rdfs:range rdfs:Class ; rdfs:domain rdf:Property . rdfs:seeAlso a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "seeAlso" ; rdfs:comment "Further information about the subject resource." ; rdfs:range rdfs:Resource ; rdfs:domain rdfs:Resource . rdfs:isDefinedBy a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:subPropertyOf rdfs:seeAlso ; rdfs:label "isDefinedBy" ; rdfs:comment "The defininition of the subject resource." ; rdfs:range rdfs:Resource ; rdfs:domain rdfs:Resource . rdfs:Literal a rdfs:Class ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "Literal" ; rdfs:comment "The class of literal values, eg. textual strings and integers." ; rdfs:subClassOf rdfs:Resource . rdfs:Container a rdfs:Class ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "Container" ; rdfs:subClassOf rdfs:Resource ; rdfs:comment "The class of RDF containers." . rdfs:ContainerMembershipProperty a rdfs:Class ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "ContainerMembershipProperty" ; rdfs:comment """The class of container membership properties, rdf:_1, rdf:_2, ..., all of which are sub-properties of 'member'.""" ; rdfs:subClassOf rdf:Property . rdfs:member a rdf:Property ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "member" ; rdfs:comment "A member of the subject resource." ; rdfs:domain rdfs:Resource ; rdfs:range rdfs:Resource . rdfs:Datatype a rdfs:Class ; rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ; rdfs:label "Datatype" ; rdfs:comment "The class of RDF datatypes." ; rdfs:subClassOf rdfs:Class . <http://www.w3.org/2000/01/rdf-schema#> rdfs:seeAlso <http://www.w3.org/2000/01/rdf-schema-more> .
SemanticAPI/src/main/resources/log4j.properties +1 −0 Original line number Diff line number Diff line # Root logger option log4j.rootLogger=INFO, stdout log4j.logger.cz.muni.fi.lasaris.sbms.semantics=DEBUG log4j.logger.org.apache.jena=DEBUG # Direct log messages to stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender Loading
SemanticAPI/src/main/resources/ont-policy.rdf +15 −13 Original line number Diff line number Diff line Loading @@ -47,8 +47,8 @@ <OntologySpec> <!-- local version of the OWL language ontology (in OWL) --> <publicURI rdf:resource="http://www.w3.org/2002/07/owl" /> <!-- uncomment the following line to re-direct attempts to http get the file <altURL rdf:resource="file:vocabularies/owl.owl" /--> <!-- uncomment the following line to re-direct attempts to http get the file /--> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\owl.owl" <language rdf:resource="http://www.w3.org/2002/07/owl" /> <prefix rdf:datatype="&xsd;string">owl</prefix> </OntologySpec> Loading @@ -56,40 +56,42 @@ <OntologySpec> <!-- local version of the RDFS vocabulary --> <publicURI rdf:resource="http://www.w3.org/2000/01/rdf-schema" /> <!-- uncomment the following line to re-direct attempts to http get the file <altURL rdf:resource="file:vocabularies/rdf-schema.rdf" /--> <!-- uncomment the following line to re-direct attempts to http get the file /--> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\rdf-schema.rdf" <language rdf:resource="http://www.w3.org/2000/01/rdf-schema" /> <prefix rdf:datatype="&xsd;string">rdfs</prefix> </OntologySpec> <OntologySpec> <publicURI rdf:resource="http://is.muni.cz/www/255658/sbms/v2_0/SemanticBMS" /> <altURL rdf:resource="file:/apache-tomcat-9.0.0.M19/webapps/sbms/WEB-INF/classes/RDF/SemanticBMS.rdf" /> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\SemanticBMS.rdf" /> </OntologySpec> <OntologySpec> <publicURI rdf:resource="http://is.muni.cz/www/255658/sbms/v2_0/SemanticBIM" /> <altURL rdf:resource="file:/apache-tomcat-9.0.0.M19/webapps/sbms/WEB-INF/classes/RDF/SemanticBIM.rdf" /> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\SemanticBIM.rdf" /> </OntologySpec> <OntologySpec> <publicURI rdf:resource="http://purl.oclc.org/NET/muo/ucum/" /> <altURL rdf:resource="file:/apache-tomcat-9.0.0.M19/webapps/sbms/WEB-INF/classes/RDF/ucum-instances.rdf" /> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\ucum-instances.rdf" /> </OntologySpec> <OntologySpec> <publicURI rdf:resource="http://www.loa.istc.cnr.it/ontologies/DUL.owl" /> <altURL rdf:resource="file:/xapache-tomcat-9.0.0.M19/webapps/sbms/WEB-INF/classes/RDF/DUL.rdf" /> <publicURI rdf:resource="http://purl.oclc.org/NET/muo/muo-vocab.owl" /> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\muo-vocab.rdf" /> </OntologySpec> <OntologySpec> <publicURI rdf:resource="http://purl.oclc.org/NET/ssnx/ssn" /> <altURL rdf:resource="file:/xapache-tomcat-9.0.0.M19/webapps/sbms/WEB-INF/classes/RDF/ssn.rdf" /> <publicURI rdf:resource="http://www.loa.istc.cnr.it/ontologies/DUL.owl" /> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\DUL.rdf" /> </OntologySpec> <OntologySpec> <publicURI rdf:resource="http://purl.oclc.org/NET/muo/muo-vocab.owl" /> <altURL rdf:resource="file:/xapache-tomcat-9.0.0.M19/webapps/sbms/WEB-INF/classes/RDF/muo-vocab.rdf" /> <publicURI rdf:resource="http://purl.oclc.org/NET/ssnx/ssn" /> <altURL rdf:resource="file:C:\apache-tomcat-9.0.0.M19\webapps\sbms\WEB-INF\classes\RDF\ssn.rdf" /> </OntologySpec> </rdf:RDF> No newline at end of file