Closed Hebaallahibrahim closed 4 years ago
Hi, which OWLAPI version and what input ontology are you using?
I use RDF/XML ontology, actually I don't use the version I use the dependency like this without mention the version
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi-api</artifactId>
</dependency>
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi-apibinding</artifactId>
</dependency>
You might not mention the version in your pom file but maven must resolve it to a specific owlapi version when compiling your code. We need to know what maven is choosing - it should be printed out when you run a build, or made explicit in your ide project configuration.
I need to see the input ontology - just knowing it's rdf/XML is not sufficient.
I have Maven 3 (version 3.3.9) and the input ontology is univ-bench.rdf
The maven version is not what we need. In the output, Maven will also say what version each of the libraries in the classpath are. If not, please add a version so we're sure we're talking about the same code.
There are no sub data property axioms in your ontology.
With OWLAPI 4 and OWLAPI 5, I get no unparsed triples:
CheckOntology.should() RDF/XML Syntax CheckOntology.should() data http://swat.cse.lehigh.edu/onto/univ-bench.owl#age http://swat.cse.lehigh.edu/onto/univ-bench.owl#emailAddress http://swat.cse.lehigh.edu/onto/univ-bench.owl#name http://swat.cse.lehigh.edu/onto/univ-bench.owl#officeNumber http://swat.cse.lehigh.edu/onto/univ-bench.owl#researchInterest http://swat.cse.lehigh.edu/onto/univ-bench.owl#telephone http://swat.cse.lehigh.edu/onto/univ-bench.owl#title CheckOntology.should() object http://swat.cse.lehigh.edu/onto/univ-bench.owl#advisor http://swat.cse.lehigh.edu/onto/univ-bench.owl#affiliateOf http://swat.cse.lehigh.edu/onto/univ-bench.owl#affiliatedOrganizationOf http://swat.cse.lehigh.edu/onto/univ-bench.owl#degreeFrom http://swat.cse.lehigh.edu/onto/univ-bench.owl#doctoralDegreeFrom http://swat.cse.lehigh.edu/onto/univ-bench.owl#hasAlumnus http://swat.cse.lehigh.edu/onto/univ-bench.owl#headOf http://swat.cse.lehigh.edu/onto/univ-bench.owl#listedCourse http://swat.cse.lehigh.edu/onto/univ-bench.owl#mastersDegreeFrom http://swat.cse.lehigh.edu/onto/univ-bench.owl#member http://swat.cse.lehigh.edu/onto/univ-bench.owl#memberOf http://swat.cse.lehigh.edu/onto/univ-bench.owl#orgPublication http://swat.cse.lehigh.edu/onto/univ-bench.owl#publicationAuthor http://swat.cse.lehigh.edu/onto/univ-bench.owl#publicationDate http://swat.cse.lehigh.edu/onto/univ-bench.owl#publicationResearch http://swat.cse.lehigh.edu/onto/univ-bench.owl#researchProject http://swat.cse.lehigh.edu/onto/univ-bench.owl#softwareDocumentation http://swat.cse.lehigh.edu/onto/univ-bench.owl#softwareVersion http://swat.cse.lehigh.edu/onto/univ-bench.owl#subOrganizationOf http://swat.cse.lehigh.edu/onto/univ-bench.owl#takesCourse http://swat.cse.lehigh.edu/onto/univ-bench.owl#teacherOf http://swat.cse.lehigh.edu/onto/univ-bench.owl#teachingAssistantOf http://swat.cse.lehigh.edu/onto/univ-bench.owl#tenured http://swat.cse.lehigh.edu/onto/univ-bench.owl#undergraduateDegreeFrom http://swat.cse.lehigh.edu/onto/univ-bench.owl#worksFor CheckOntology.should() annotation rdfs:comment rdfs:label owl:versionInfo CheckOntology.should() subdata CheckOntology.should() subobject SubObjectPropertyOf(http://swat.cse.lehigh.edu/onto/univ-bench.owl#worksFor http://swat.cse.lehigh.edu/onto/univ-bench.owl#memberOf) SubObjectPropertyOf(http://swat.cse.lehigh.edu/onto/univ-bench.owl#doctoralDegreeFrom http://swat.cse.lehigh.edu/onto/univ-bench.owl#degreeFrom) SubObjectPropertyOf(http://swat.cse.lehigh.edu/onto/univ-bench.owl#headOf http://swat.cse.lehigh.edu/onto/univ-bench.owl#worksFor) SubObjectPropertyOf(http://swat.cse.lehigh.edu/onto/univ-bench.owl#mastersDegreeFrom http://swat.cse.lehigh.edu/onto/univ-bench.owl#degreeFrom) SubObjectPropertyOf(http://swat.cse.lehigh.edu/onto/univ-bench.owl#undergraduateDegreeFrom http://swat.cse.lehigh.edu/onto/univ-bench.owl#degreeFrom) CheckOntology.should() subannotation (no subannotations)
I have added the version 5.1.5 to the dependency and still face the same error. and my question was general with another ontology the same problem for subdata and subobject properties
and fr the unparsed triple, if we have this record
<rdf:Description rdf:nodeID="node1d7hctiisx2">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Restriction"/>
<owl:onProperty rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#headOf"/>
<owl:someValuesFrom rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Department"/>
</rdf:Description>
I got this INFO:
1158 INFO org.semanticweb.owlapi.rdf.rdfxml.parser.OWLRDFConsumer:458 - Unparsed triple: _:genid-nodeid-node1da6h2p9lx25 -> http://www.w3.org/2002/07/owl#someValuesFrom -> http://swat.cse.lehigh.edu/onto/univ-bench.owl#Department 1210 INFO org.semanticweb.owlapi.rdf.rdfxml.parser.OWLRDFConsumer:458 - Unparsed triple: _:genid-nodeid-node1da6h2p9lx26 -> http://www.w3.org/2002/07/owl#onProperty -> http://swat.cse.lehigh.edu/onto/univ-bench.owl#headOf
and also have such error:
3164 ERROR org.semanticweb.owlapi.rdf.rdfxml.parser.OWLRDFConsumer:1797 - Entity not properly recognized, missing triples in input? http://org.semanticweb.owlapi/error#Error1 for type Class
I still cannot replicate the issue - the records are parsed as expected on my machine with version 5.1.5.
Can you add this code at the beginning of your program and past the result? I want to make sure there's only one OWLAPI version around.
System.out.println("CheckOntology.should() " + System.getProperty("java.class.path"));
the output of the code is :
CheckOntology.should() /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/icedtea-sound.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/home/heba/SANSA_Inference/SANSA-Inference/sansa-inference-spark/target/classes:/home/heba/.m2/repository/org/apache/httpcomponents/httpcore/4.4.11/httpcore-4.4.11.jar:/home/heba/.m2/repository/org/apache/httpcomponents/httpclient/4.5.8/httpclient-4.5.8.jar:/home/heba/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/home/heba/.m2/repository/commons-codec/commons-codec/1.11/commons-codec-1.11.jar:/home/heba/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.8/jackson-databind-2.9.8.jar:/home/heba/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar:/home/heba/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.8/jackson-core-2.9.8.jar:/home/heba/.m2/repository/com/fasterxml/jackson/module/jackson-module-scala_2.11/2.9.8/jackson-module-scala_2.11-2.9.8.jar:/home/heba/.m2/repository/com/fasterxml/jackson/module/jackson-module-paranamer/2.9.8/jackson-module-paranamer-2.9.8.jar:/home/heba/.m2/repository/com/thoughtworks/paranamer/paranamer/2.8/paranamer-2.8.jar:/home/heba/.m2/repository/net/sourceforge/owlapi/owlapi-api/5.1.5/owlapi-api-5.1.5.jar:/home/heba/.m2/repository/org/tukaani/xz/1.6/xz-1.6.jar:/home/heba/.m2/repository/org/apache/commons/commons-rdf-api/0.3.0-incubating/commons-rdf-api-0.3.0-incubating.jar:/home/heba/.m2/repository/net/sf/trove4j/trove4j/3.0.3/trove4j-3.0.3.jar:/home/heba/.m2/repository/com/github/ben-manes/caffeine/caffeine/2.5.6/caffeine-2.5.6.jar:/home/heba/.m2/repository/com/google/guava/guava/22.0/guava-22.0.jar:/home/heba/.m2/repository/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar:/home/heba/.m2/repository/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar:/home/heba/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar:/home/heba/.m2/repository/com/google/inject/guice/4.1.0/guice-4.1.0.jar:/home/heba/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/home/heba/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/home/heba/.m2/repository/com/google/inject/extensions/guice-assistedinject/4.1.0/guice-assistedinject-4.1.0.jar:/home/heba/.m2/repository/com/google/inject/extensions/guice-multibindings/4.1.0/guice-multibindings-4.1.0.jar:/home/heba/.m2/repository/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar:/home/heba/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar:/home/heba/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar:/home/heba/.m2/repository/net/sourceforge/owlapi/owlapi-apibinding/5.1.5/owlapi-apibinding-5.1.5.jar:/home/heba/.m2/repository/net/sourceforge/owlapi/owlapi-impl/5.1.5/owlapi-impl-5.1.5.jar:/home/heba/.m2/repository/net/sourceforge/owlapi/owlapi-parsers/5.1.5/owlapi-parsers-5.1.5.jar:/home/heba/.m2/repository/net/sourceforge/owlapi/owlapi-oboformat/5.1.5/owlapi-oboformat-5.1.5.jar:/home/heba/.m2/repository/net/sourceforge/owlapi/owlapi-tools/5.1.5/owlapi-tools-5.1.5.jar:/home/heba/.m2/repository/net/sourceforge/owlapi/owlapi-rio/5.1.5/owlapi-rio-5.1.5.jar:/home/heba/.m2/repository/net/sourceforge/owlapi/owlapi-distribution/5.1.5/owlapi-distribution-5.1.5.jar:/home/heba/.m2/repository/net/sourceforge/owlapi/owlapi-compatibility/5.1.5/owlapi-compatibility-5.1.5.jar:/home/heba/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.22/jcl-over-slf4j-1.7.22.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-model/2.2.2/rdf4j-model-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-rio-api/2.2.2/rdf4j-rio-api-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-rio-languages/2.2.2/rdf4j-rio-languages-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-rio-datatypes/2.2.2/rdf4j-rio-datatypes-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-rio-binary/2.2.2/rdf4j-rio-binary-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-rio-n3/2.2.2/rdf4j-rio-n3-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-rio-nquads/2.2.2/rdf4j-rio-nquads-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-rio-ntriples/2.2.2/rdf4j-rio-ntriples-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-rio-rdfjson/2.2.2/rdf4j-rio-rdfjson-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-rio-jsonld/2.2.2/rdf4j-rio-jsonld-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-rio-rdfxml/2.2.2/rdf4j-rio-rdfxml-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-rio-trix/2.2.2/rdf4j-rio-trix-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-rio-turtle/2.2.2/rdf4j-rio-turtle-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-rio-trig/2.2.2/rdf4j-rio-trig-2.2.2.jar:/home/heba/.m2/repository/org/eclipse/rdf4j/rdf4j-util/2.2.2/rdf4j-util-2.2.2.jar:/home/heba/.m2/repository/com/github/jsonld-java/jsonld-java/0.9.0/jsonld-java-0.9.0.jar:/home/heba/.m2/repository/org/apache/httpcomponents/httpclient-osgi/4.5.2/httpclient-osgi-4.5.2.jar:/home/heba/.m2/repository/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.jar:/home/heba/.m2/repository/org/apache/httpcomponents/fluent-hc/4.5.2/fluent-hc-4.5.2.jar:/home/heba/.m2/repository/org/apache/httpcomponents/httpcore-osgi/4.4.4/httpcore-osgi-4.4.4.jar:/home/heba/.m2/repository/org/apache/httpcomponents/httpcore-nio/4.4.4/httpcore-nio-4.4.4.jar:/home/heba/.m2/repository/net/sourceforge/owlapi/owlapi-osgidistribution/5.1.5/owlapi-osgidistribution-5.1.5.jar:/home/heba/.m2/repository/org/apache/httpcomponents/httpclient-cache/4.5.2/httpclient-cache-4.5.2.jar:/home/heba/.m2/repository/org/apache/servicemix/bundles/org.apache.servicemix.bundles.javax-inject/1_2/org.apache.servicemix.bundles.javax-inject-1_2.jar:/home/heba/.m2/repository/org/apache/servicemix/bundles/org.apache.servicemix.bundles.aopalliance/1.0_6/org.apache.servicemix.bundles.aopalliance-1.0_6.jar:/home/heba/SANSA_Inference/SANSA-Inference/sansa-inference-common/target/classes:/home/heba/.m2/repository/org/apache/jena/jena-cmds/3.9.0/jena-cmds-3.9.0.jar:/home/heba/.m2/repository/org/apache/jena/jena-tdb2/3.9.0/jena-tdb2-3.9.0.jar:/home/heba/.m2/repository/org/apache/jena/jena-dboe-trans-data/3.9.0/jena-dboe-trans-data-3.9.0.jar:/home/heba/.m2/repository/org/apache/jena/jena-dboe-transaction/3.9.0/jena-dboe-transaction-3.9.0.jar:/home/heba/.m2/repository/org/apache/jena/jena-dboe-base/3.9.0/jena-dboe-base-3.9.0.jar:/home/heba/.m2/repository/org/apache/jena/jena-dboe-index/3.9.0/jena-dboe-index-3.9.0.jar:/home/heba/.m2/repository/org/apache/jena/jena-rdfconnection/3.9.0/jena-rdfconnection-3.9.0.jar:/home/heba/.m2/repository/org/jgrapht/jgrapht-io/1.2.0/jgrapht-io-1.2.0.jar:/home/heba/.m2/repository/org/antlr/antlr4-runtime/4.7/antlr4-runtime-4.7.jar:/home/heba/.m2/repository/com/google/protobuf/protobuf-java/3.5.0/protobuf-java-3.5.0.jar:/home/heba/.m2/repository/net/sansa-stack/sansa-owl-spark_2.11/0.4.2-SNAPSHOT/sansa-owl-spark_2.11-0.4.2-20190125.091642-2.jar:/home/heba/.m2/repository/net/sansa-stack/sansa-owl-common_2.11/0.4.2-SNAPSHOT/sansa-owl-common_2.11-0.4.2-20190125.091640-2.jar:/home/heba/.m2/repository/de/javakaffee/kryo-serializers/0.42/kryo-serializers-0.42.jar:/home/heba/.m2/repository/com/esotericsoftware/kryo/4.0.0/kryo-4.0.0.jar:/home/heba/.m2/repository/com/esotericsoftware/reflectasm/1.11.3/reflectasm-1.11.3.jar:/home/heba/.m2/repository/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar:/home/heba/.m2/repository/com/esotericsoftware/minlog/1.3.0/minlog-1.3.0.jar:/home/heba/.m2/repository/org/objenesis/objenesis/2.2/objenesis-2.2.jar:/home/heba/.m2/repository/org/apache/poi/poi/4.0.0/poi-4.0.0.jar:/home/heba/.m2/repository/org/apache/commons/commons-collections4/4.2/commons-collections4-4.2.jar:/home/heba/.m2/repository/org/scala-lang/modules/scala-java8-compat_2.12/0.9.0/scala-java8-compat_2.12-0.9.0.jar:/home/heba/.m2/repository/xalan/xalan/2.7.2/xalan-2.7.2.jar:/home/heba/.m2/repository/xalan/serializer/2.7.2/serializer-2.7.2.jar:/home/heba/.m2/repository/com/sun/xml/parsers/jaxp-ri/1.4.5/jaxp-ri-1.4.5.jar:/home/heba/.m2/repository/javax/xml/parsers/jaxp-api/1.4.5/jaxp-api-1.4.5.jar:/home/heba/.m2/repository/net/sansa-stack/sansa-rdf-spark_2.11/0.5.1-SNAPSHOT/sansa-rdf-spark_2.11-0.5.1-20190430.140412-3.jar:/home/heba/.m2/repository/net/sansa-stack/sansa-rdf-common_2.11/0.5.1-SNAPSHOT/sansa-rdf-common_2.11-0.5.1-20190430.140410-3.jar:/home/heba/.m2/repository/org/apache/spark/spark-graphx_2.11/2.4.0/spark-graphx_2.11-2.4.0.jar:/home/heba/.m2/repository/org/apache/spark/spark-mllib-local_2.11/2.4.0/spark-mllib-local_2.11-2.4.0.jar:/home/heba/.m2/repository/org/scalanlp/breeze_2.11/0.13.2/breeze_2.11-0.13.2.jar:/home/heba/.m2/repository/org/scalanlp/breeze-macros_2.11/0.13.2/breeze-macros_2.11-0.13.2.jar:/home/heba/.m2/repository/com/github/rwl/jtransforms/2.4.0/jtransforms-2.4.0.jar:/home/heba/.m2/repository/org/spire-math/spire_2.11/0.13.0/spire_2.11-0.13.0.jar:/home/heba/.m2/repository/org/spire-math/spire-macros_2.11/0.13.0/spire-macros_2.11-0.13.0.jar:/home/heba/.m2/repository/org/typelevel/machinist_2.11/0.6.1/machinist_2.11-0.6.1.jar:/home/heba/.m2/repository/com/github/fommil/netlib/core/1.1.2/core-1.1.2.jar:/home/heba/.m2/repository/net/sourceforge/f2j/arpack_combined_all/0.1/arpack_combined_all-0.1.jar:/home/heba/.m2/repository/org/apache/spark/spark-streaming_2.11/2.4.0/spark-streaming_2.11-2.4.0.jar:/home/heba/.m2/repository/org/apache/spark/spark-streaming-kafka-0-10_2.11/2.4.0/spark-streaming-kafka-0-10_2.11-2.4.0.jar:/home/heba/.m2/repository/org/apache/kafka/kafka-clients/2.0.0/kafka-clients-2.0.0.jar:/home/heba/.m2/repository/it/unimi/dsi/fastutil/8.1.0/fastutil-8.1.0.jar:/home/heba/.m2/repository/com/ibm/sparktc/sparkbench/sparkbench/2.3.0_0.4.0/sparkbench-2.3.0_0.4.0.jar:/home/heba/.m2/repository/org/scala-lang/scala-library/2.11.11/scala-library-2.11.11.jar:/home/heba/.m2/repository/org/apache/spark/spark-core_2.11/2.4.0/spark-core_2.11-2.4.0.jar:/home/heba/.m2/repository/org/apache/avro/avro/1.8.2/avro-1.8.2.jar:/home/heba/.m2/repository/org/apache/avro/avro-mapred/1.8.2/avro-mapred-1.8.2-hadoop2.jar:/home/heba/.m2/repository/org/apache/avro/avro-ipc/1.8.2/avro-ipc-1.8.2.jar:/home/heba/.m2/repository/com/twitter/chill_2.11/0.9.3/chill_2.11-0.9.3.jar:/home/heba/.m2/repository/com/esotericsoftware/kryo-shaded/4.0.2/kryo-shaded-4.0.2.jar:/home/heba/.m2/repository/com/twitter/chill-java/0.9.3/chill-java-0.9.3.jar:/home/heba/.m2/repository/org/apache/xbean/xbean-asm6-shaded/4.8/xbean-asm6-shaded-4.8.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-client/2.7.0/hadoop-client-2.7.0.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-app/2.7.0/hadoop-mapreduce-client-app-2.7.0.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-yarn-api/2.7.0/hadoop-yarn-api-2.7.0.jar:/home/heba/.m2/repository/org/apache/spark/spark-launcher_2.11/2.4.0/spark-launcher_2.11-2.4.0.jar:/home/heba/.m2/repository/org/apache/spark/spark-kvstore_2.11/2.4.0/spark-kvstore_2.11-2.4.0.jar:/home/heba/.m2/repository/org/fusesource/leveldbjni/leveldbjni-all/1.8/leveldbjni-all-1.8.jar:/home/heba/.m2/repository/org/apache/spark/spark-network-common_2.11/2.4.0/spark-network-common_2.11-2.4.0.jar:/home/heba/.m2/repository/org/apache/spark/spark-network-shuffle_2.11/2.4.0/spark-network-shuffle_2.11-2.4.0.jar:/home/heba/.m2/repository/org/apache/spark/spark-unsafe_2.11/2.4.0/spark-unsafe_2.11-2.4.0.jar:/home/heba/.m2/repository/javax/activation/activation/1.1.1/activation-1.1.1.jar:/home/heba/.m2/repository/org/apache/curator/curator-recipes/2.6.0/curator-recipes-2.6.0.jar:/home/heba/.m2/repository/org/apache/curator/curator-framework/2.6.0/curator-framework-2.6.0.jar:/home/heba/.m2/repository/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar:/home/heba/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar:/home/heba/.m2/repository/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar:/home/heba/.m2/repository/org/apache/commons/commons-math3/3.4.1/commons-math3-3.4.1.jar:/home/heba/.m2/repository/org/slf4j/jul-to-slf4j/1.7.16/jul-to-slf4j-1.7.16.jar:/home/heba/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/home/heba/.m2/repository/org/slf4j/slf4j-log4j12/1.7.16/slf4j-log4j12-1.7.16.jar:/home/heba/.m2/repository/com/ning/compress-lzf/1.0.3/compress-lzf-1.0.3.jar:/home/heba/.m2/repository/org/xerial/snappy/snappy-java/1.1.7.1/snappy-java-1.1.7.1.jar:/home/heba/.m2/repository/org/lz4/lz4-java/1.4.0/lz4-java-1.4.0.jar:/home/heba/.m2/repository/com/github/luben/zstd-jni/1.3.2-2/zstd-jni-1.3.2-2.jar:/home/heba/.m2/repository/org/roaringbitmap/RoaringBitmap/0.5.11/RoaringBitmap-0.5.11.jar:/home/heba/.m2/repository/commons-net/commons-net/3.1/commons-net-3.1.jar:/home/heba/.m2/repository/org/json4s/json4s-jackson_2.11/3.5.3/json4s-jackson_2.11-3.5.3.jar:/home/heba/.m2/repository/org/json4s/json4s-core_2.11/3.5.3/json4s-core_2.11-3.5.3.jar:/home/heba/.m2/repository/org/json4s/json4s-ast_2.11/3.5.3/json4s-ast_2.11-3.5.3.jar:/home/heba/.m2/repository/org/json4s/json4s-scalap_2.11/3.5.3/json4s-scalap_2.11-3.5.3.jar:/home/heba/.m2/repository/org/glassfish/jersey/core/jersey-client/2.22.2/jersey-client-2.22.2.jar:/home/heba/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar:/home/heba/.m2/repository/org/glassfish/hk2/hk2-api/2.4.0-b34/hk2-api-2.4.0-b34.jar:/home/heba/.m2/repository/org/glassfish/hk2/hk2-utils/2.4.0-b34/hk2-utils-2.4.0-b34.jar:/home/heba/.m2/repository/org/glassfish/hk2/external/aopalliance-repackaged/2.4.0-b34/aopalliance-repackaged-2.4.0-b34.jar:/home/heba/.m2/repository/org/glassfish/hk2/external/javax.inject/2.4.0-b34/javax.inject-2.4.0-b34.jar:/home/heba/.m2/repository/org/glassfish/hk2/hk2-locator/2.4.0-b34/hk2-locator-2.4.0-b34.jar:/home/heba/.m2/repository/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar:/home/heba/.m2/repository/org/glassfish/jersey/core/jersey-common/2.22.2/jersey-common-2.22.2.jar:/home/heba/.m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar:/home/heba/.m2/repository/org/glassfish/jersey/bundles/repackaged/jersey-guava/2.22.2/jersey-guava-2.22.2.jar:/home/heba/.m2/repository/org/glassfish/hk2/osgi-resource-locator/1.0.1/osgi-resource-locator-1.0.1.jar:/home/heba/.m2/repository/org/glassfish/jersey/core/jersey-server/2.22.2/jersey-server-2.22.2.jar:/home/heba/.m2/repository/org/glassfish/jersey/media/jersey-media-jaxb/2.22.2/jersey-media-jaxb-2.22.2.jar:/home/heba/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar:/home/heba/.m2/repository/org/glassfish/jersey/containers/jersey-container-servlet/2.22.2/jersey-container-servlet-2.22.2.jar:/home/heba/.m2/repository/org/glassfish/jersey/containers/jersey-container-servlet-core/2.22.2/jersey-container-servlet-core-2.22.2.jar:/home/heba/.m2/repository/io/netty/netty-all/4.1.17.Final/netty-all-4.1.17.Final.jar:/home/heba/.m2/repository/io/netty/netty/3.9.9.Final/netty-3.9.9.Final.jar:/home/heba/.m2/repository/com/clearspring/analytics/stream/2.7.0/stream-2.7.0.jar:/home/heba/.m2/repository/io/dropwizard/metrics/metrics-core/3.1.5/metrics-core-3.1.5.jar:/home/heba/.m2/repository/io/dropwizard/metrics/metrics-jvm/3.1.5/metrics-jvm-3.1.5.jar:/home/heba/.m2/repository/io/dropwizard/metrics/metrics-json/3.1.5/metrics-json-3.1.5.jar:/home/heba/.m2/repository/io/dropwizard/metrics/metrics-graphite/3.1.5/metrics-graphite-3.1.5.jar:/home/heba/.m2/repository/org/apache/ivy/ivy/2.4.0/ivy-2.4.0.jar:/home/heba/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar:/home/heba/.m2/repository/net/razorvine/pyrolite/4.13/pyrolite-4.13.jar:/home/heba/.m2/repository/net/sf/py4j/py4j/0.10.7/py4j-0.10.7.jar:/home/heba/.m2/repository/org/apache/spark/spark-tags_2.11/2.4.0/spark-tags_2.11-2.4.0.jar:/home/heba/.m2/repository/org/apache/commons/commons-crypto/1.0.0/commons-crypto-1.0.0.jar:/home/heba/.m2/repository/org/spark-project/spark/unused/1.0.0/unused-1.0.0.jar:/home/heba/.m2/repository/org/apache/spark/spark-sql_2.11/2.4.0/spark-sql_2.11-2.4.0.jar:/home/heba/.m2/repository/com/univocity/univocity-parsers/2.7.3/univocity-parsers-2.7.3.jar:/home/heba/.m2/repository/org/apache/spark/spark-sketch_2.11/2.4.0/spark-sketch_2.11-2.4.0.jar:/home/heba/.m2/repository/org/apache/spark/spark-catalyst_2.11/2.4.0/spark-catalyst_2.11-2.4.0.jar:/home/heba/.m2/repository/org/codehaus/janino/janino/3.0.9/janino-3.0.9.jar:/home/heba/.m2/repository/org/codehaus/janino/commons-compiler/3.0.9/commons-compiler-3.0.9.jar:/home/heba/.m2/repository/org/apache/orc/orc-core/1.5.2/orc-core-1.5.2-nohive.jar:/home/heba/.m2/repository/org/apache/orc/orc-shims/1.5.2/orc-shims-1.5.2.jar:/home/heba/.m2/repository/io/airlift/aircompressor/0.10/aircompressor-0.10.jar:/home/heba/.m2/repository/org/apache/orc/orc-mapreduce/1.5.2/orc-mapreduce-1.5.2-nohive.jar:/home/heba/.m2/repository/org/apache/parquet/parquet-column/1.10.0/parquet-column-1.10.0.jar:/home/heba/.m2/repository/org/apache/parquet/parquet-common/1.10.0/parquet-common-1.10.0.jar:/home/heba/.m2/repository/org/apache/parquet/parquet-encoding/1.10.0/parquet-encoding-1.10.0.jar:/home/heba/.m2/repository/org/apache/parquet/parquet-hadoop/1.10.0/parquet-hadoop-1.10.0.jar:/home/heba/.m2/repository/org/apache/parquet/parquet-format/2.4.0/parquet-format-2.4.0.jar:/home/heba/.m2/repository/org/apache/parquet/parquet-jackson/1.10.0/parquet-jackson-1.10.0.jar:/home/heba/.m2/repository/org/apache/arrow/arrow-vector/0.10.0/arrow-vector-0.10.0.jar:/home/heba/.m2/repository/org/apache/arrow/arrow-format/0.10.0/arrow-format-0.10.0.jar:/home/heba/.m2/repository/org/apache/arrow/arrow-memory/0.10.0/arrow-memory-0.10.0.jar:/home/heba/.m2/repository/com/carrotsearch/hppc/0.7.2/hppc-0.7.2.jar:/home/heba/.m2/repository/com/vlkan/flatbuffers/1.2.0-3f79e055/flatbuffers-1.2.0-3f79e055.jar:/home/heba/.m2/repository/com/chuusai/shapeless_2.11/2.3.3/shapeless_2.11-2.3.3.jar:/home/heba/.m2/repository/org/typelevel/macro-compat_2.11/1.1.1/macro-compat_2.11-1.1.1.jar:/home/heba/.m2/repository/org/apache/jena/jena-core/3.9.0/jena-core-3.9.0.jar:/home/heba/.m2/repository/org/apache/jena/jena-iri/3.9.0/jena-iri-3.9.0.jar:/home/heba/.m2/repository/commons-cli/commons-cli/1.4/commons-cli-1.4.jar:/home/heba/.m2/repository/org/apache/jena/jena-base/3.9.0/jena-base-3.9.0.jar:/home/heba/.m2/repository/org/apache/commons/commons-csv/1.5/commons-csv-1.5.jar:/home/heba/.m2/repository/com/github/andrewoma/dexx/collection/0.7/collection-0.7.jar:/home/heba/.m2/repository/org/apache/jena/jena-arq/3.9.0/jena-arq-3.9.0.jar:/home/heba/.m2/repository/org/apache/jena/jena-shaded-guava/3.9.0/jena-shaded-guava-3.9.0.jar:/home/heba/.m2/repository/org/apache/thrift/libthrift/0.10.0/libthrift-0.10.0.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-common/2.8.3/hadoop-common-2.8.3.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-annotations/2.8.3/hadoop-annotations-2.8.3.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar:/home/heba/.m2/repository/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/home/heba/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/home/heba/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/home/heba/.m2/repository/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar:/home/heba/.m2/repository/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar:/home/heba/.m2/repository/org/mortbay/jetty/jetty-sslengine/6.1.26/jetty-sslengine-6.1.26.jar:/home/heba/.m2/repository/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar:/home/heba/.m2/repository/com/sun/jersey/jersey-core/1.9/jersey-core-1.9.jar:/home/heba/.m2/repository/com/sun/jersey/jersey-json/1.9/jersey-json-1.9.jar:/home/heba/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/home/heba/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/home/heba/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.8.3/jackson-jaxrs-1.8.3.jar:/home/heba/.m2/repository/org/codehaus/jackson/jackson-xc/1.8.3/jackson-xc-1.8.3.jar:/home/heba/.m2/repository/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.jar:/home/heba/.m2/repository/asm/asm/3.1/asm-3.1.jar:/home/heba/.m2/repository/net/java/dev/jets3t/jets3t/0.9.0/jets3t-0.9.0.jar:/home/heba/.m2/repository/com/jamesmurty/utils/java-xmlbuilder/0.4/java-xmlbuilder-0.4.jar:/home/heba/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/home/heba/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/home/heba/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/home/heba/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/home/heba/.m2/repository/commons-beanutils/commons-beanutils-core/1.8.0/commons-beanutils-core-1.8.0.jar:/home/heba/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/home/heba/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/home/heba/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-auth/2.8.3/hadoop-auth-2.8.3.jar:/home/heba/.m2/repository/com/nimbusds/nimbus-jose-jwt/3.9/nimbus-jose-jwt-3.9.jar:/home/heba/.m2/repository/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar:/home/heba/.m2/repository/net/minidev/json-smart/1.1.1/json-smart-1.1.1.jar:/home/heba/.m2/repository/org/apache/directory/server/apacheds-kerberos-codec/2.0.0-M15/apacheds-kerberos-codec-2.0.0-M15.jar:/home/heba/.m2/repository/org/apache/directory/server/apacheds-i18n/2.0.0-M15/apacheds-i18n-2.0.0-M15.jar:/home/heba/.m2/repository/org/apache/directory/api/api-asn1-api/1.0.0-M20/api-asn1-api-1.0.0-M20.jar:/home/heba/.m2/repository/org/apache/directory/api/api-util/1.0.0-M20/api-util-1.0.0-M20.jar:/home/heba/.m2/repository/com/jcraft/jsch/0.1.54/jsch-0.1.54.jar:/home/heba/.m2/repository/org/apache/curator/curator-client/2.7.1/curator-client-2.7.1.jar:/home/heba/.m2/repository/org/apache/htrace/htrace-core4/4.0.1-incubating/htrace-core4-4.0.1-incubating.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-streaming/2.8.3/hadoop-streaming-2.8.3.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-core/2.8.3/hadoop-mapreduce-client-core-2.8.3.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-yarn-common/2.8.3/hadoop-yarn-common-2.8.3.jar:/home/heba/.m2/repository/javax/xml/bind/jaxb-api/2.2.2/jaxb-api-2.2.2.jar:/home/heba/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/home/heba/.m2/repository/com/sun/jersey/jersey-client/1.9/jersey-client-1.9.jar:/home/heba/.m2/repository/com/sun/jersey/contribs/jersey-guice/1.9/jersey-guice-1.9.jar:/home/heba/.m2/repository/com/google/inject/extensions/guice-servlet/3.0/guice-servlet-3.0.jar:/home/heba/.m2/repository/org/scala-graph/graph-core_2.11/1.12.5/graph-core_2.11-1.12.5.jar:/home/heba/.m2/repository/org/scala-graph/graph-dot_2.11/1.11.5/graph-dot_2.11-1.11.5.jar:/home/heba/.m2/repository/org/jgrapht/jgrapht-core/1.2.0/jgrapht-core-1.2.0.jar:/home/heba/.m2/repository/org/jgrapht/jgrapht-ext/1.2.0/jgrapht-ext-1.2.0.jar:/home/heba/.m2/repository/org/tinyjee/jgraphx/jgraphx/3.4.1.3/jgraphx-3.4.1.3.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-hdfs-client/2.8.3/hadoop-hdfs-client-2.8.3.jar:/home/heba/.m2/repository/com/squareup/okhttp/okhttp/2.4.0/okhttp-2.4.0.jar:/home/heba/.m2/repository/com/squareup/okio/okio/1.4.0/okio-1.4.0.jar:/home/heba/.m2/repository/commons-daemon/commons-daemon/1.0.13/commons-daemon-1.0.13.jar:/home/heba/.m2/repository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar:/home/heba/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-hdfs/2.8.3/hadoop-hdfs-2.8.3.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-common/2.8.3/hadoop-mapreduce-client-common-2.8.3.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-yarn-client/2.8.3/hadoop-yarn-client-2.8.3.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-shuffle/2.8.3/hadoop-mapreduce-client-shuffle-2.8.3.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-jobclient/2.8.3/hadoop-mapreduce-client-jobclient-2.8.3.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-yarn-server-common/2.8.3/hadoop-yarn-server-common-2.8.3.jar:/home/heba/.m2/repository/org/apache/hadoop/hadoop-yarn-server-nodemanager/2.8.3/hadoop-yarn-server-nodemanager-2.8.3.jar:/home/heba/.m2/repository/net/sf/opencsv/opencsv/2.3/opencsv-2.3.jar:/home/heba/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar:/home/heba/.m2/repository/joda-time/joda-time/2.9.3/joda-time-2.9.3.jar:/home/heba/.m2/repository/com/typesafe/scala-logging/scala-logging_2.11/3.9.0/scala-logging_2.11-3.9.0.jar:/home/heba/.m2/repository/org/scala-lang/scala-reflect/2.11.12/scala-reflect-2.11.12.jar:/home/heba/.m2/repository/com/github/scopt/scopt_2.11/3.7.0/scopt_2.11-3.7.0.jar:/home/heba/.m2/repository/com/typesafe/config/1.3.3/config-1.3.3.jar:/home/heba/.m2/repository/org/apache/calcite/calcite-core/1.16.0/calcite-core-1.16.0.jar:/home/heba/.m2/repository/org/apache/calcite/avatica/avatica-core/1.11.0/avatica-core-1.11.0.jar:/home/heba/.m2/repository/org/apache/calcite/avatica/avatica-metrics/1.11.0/avatica-metrics-1.11.0.jar:/home/heba/.m2/repository/org/apache/calcite/calcite-linq4j/1.16.0/calcite-linq4j-1.16.0.jar:/home/heba/.m2/repository/commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.jar:/home/heba/.m2/repository/com/esri/geometry/esri-geometry-api/2.0.0/esri-geometry-api-2.0.0.jar:/home/heba/.m2/repository/com/yahoo/datasketches/sketches-core/0.9.0/sketches-core-0.9.0.jar:/home/heba/.m2/repository/com/yahoo/datasketches/memory/0.9.0/memory-0.9.0.jar:/home/heba/.m2/repository/net/hydromatic/aggdesigner-algorithm/6.0/aggdesigner-algorithm-6.0.jar:/home/heba/.m2/repository/org/apache/commons/commons-compress/1.18/commons-compress-1.18.jar:/home/heba/.m2/repository/org/scala-lang/modules/scala-xml_2.11/1.0.5/scala-xml_2.11-1.0.5.jar:/home/heba/.m2/repository/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.4/scala-parser-combinators_2.11-1.0.4.jar:/opt/idea-IC-172.4574.19/lib/idea_rt.jar
I've tried replicating this by replicating the classpath you've shown and still no issue here. I'm not sure what the problem is, there's no conflicting OWLAPI version nor anything else that seems wrong.
Can you share the exact code you're using to load the ontology?
The only warning I see is related to the file not having an xml:base
2019-05-08 20:08:34:825 +0100 [main] INFO org.semanticweb.owlapi.rdf.rdfxml.parser.AbstractState - Notice: root element does not have an xml:base. Relative IRIs will be resolved against file:/univ-bench.txt
2019-05-08 20:08:34:975 +0100 [main] DEBUG org.semanticweb.owlapi.rdf.rdfxml.parser.TripleLogger - Total number of triples: 305
So it could be that having the file in a different location might change some of the parsing.
Here is that code I use to load the ontology:
def getOWLOntology(model: Model): OWLOntology = {
val in = new PipedInputStream
val o = new PipedOutputStream(in)
val man = OWLManager.createOWLOntologyManager()
new Thread(new Runnable() {
def run() : Unit = {
model.write(o, "TURTLE")
try {
o.close()
} catch {
case e: IOException => e.printStackTrace()
}
}
}).start()
val ontology : OWLOntology = man.loadOntologyFromOntologyDocument(in)
ontology
}
Thank you, I'm wondering if in your code it's possible for the reader to give up reading before the writer has finished writing.
Could you put the intermediate Turtle output in a file and attach it here? It's also possible the failure comes from a bug in the turtle format handler. The writing is form a Jena model, right?
Yes the writing is from Jena , and here is the intermediate Turtle output, out.txt
With the Turtle content, I can replicate the issue. I believe the problem is in the translation to Turtle. Jena outputs a warning:
0 WARN org.apache.jena.riot.system.ErrorHandlerFactory$ErrorLogger:95 - [line: 6, col: 138] {W108} Not an XML Name: 'http://swat.cse.lehigh.edu/onto/univ-bench.owl#node1d7hctiisx1'
And in the Turtle content, there are many structures like this:
[ <http://www.w3.org/2002/07/owl#someValuesFrom>
<http://swat.cse.lehigh.edu/onto/univ-bench.owl#Department> ] .
Where there is a blank node acting as subject of a triple, with the triple unconnected to anything else.
Looks to me like Jena does not like the ids used to connect the elements of the lists in your XML input file, and is creating incorrect Turtle. The Turtle content cannot be parsed properly by OWLAPI, and that's the origin of the errors you're seeing.
You can try a few changes:
Unfortunately, I am unable to give the input file directly to OWLAPI because I am dealing with large files (up to 20 GB)
Can you give me an example of nested lists for restrictions in RDFXML, because when I am trying to go with that, Jena produces an error.
You could try using RDF/XML-ABBREV
for the intermediate format - it should be identical to RDF/XML as used by OWLAPI.
I've saved your example file as RDF/XML with OWLAPI and got the file below:
<?xml version="1.0"?>
<rdf:RDF xmlns="http://swat.cse.lehigh.edu/onto/univ-bench.owl#"
xml:base="http://swat.cse.lehigh.edu/onto/univ-bench.owl"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<owl:Ontology rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl">
<rdfs:comment>An university ontology for benchmark tests</rdfs:comment>
<rdfs:label>Univ-bench Ontology</rdfs:label>
<owl:versionInfo>univ-bench-ontology-owl, ver April 1, 2004</owl:versionInfo>
</owl:Ontology>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#advisor">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Professor"/>
<rdfs:label>is being advised by</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#affiliateOf">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:label>is affiliated with</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#affiliatedOrganizationOf">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
<rdfs:label>is affiliated with</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#degreeFrom">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#University"/>
<rdfs:label>has a degree from</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#doctoralDegreeFrom">
<rdfs:subPropertyOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#degreeFrom"/>
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#University"/>
<rdfs:label>has a doctoral degree from</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#hasAlumnus">
<owl:inverseOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#degreeFrom"/>
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#University"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:label>has as an alumnus</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#headOf">
<rdfs:subPropertyOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#worksFor"/>
<rdfs:label>is the head of</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#listedCourse">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Schedule"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Course"/>
<rdfs:label>lists as a course</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#mastersDegreeFrom">
<rdfs:subPropertyOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#degreeFrom"/>
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#University"/>
<rdfs:label>has a masters degree from</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#member">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:label>has as a member</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#memberOf">
<owl:inverseOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#member"/>
<rdfs:label>member of</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#orgPublication">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Publication"/>
<rdfs:label>publishes</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#publicationAuthor">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Publication"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:label>was written by</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#publicationDate">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Publication"/>
<rdfs:label>was written on</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#publicationResearch">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Publication"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Research"/>
<rdfs:label>is about</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#researchProject">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#ResearchGroup"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Research"/>
<rdfs:label>has as a research project</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#softwareDocumentation">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Software"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Publication"/>
<rdfs:label>is documented in</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#softwareVersion">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Software"/>
<rdfs:label>is version</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#subOrganizationOf">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#TransitiveProperty"/>
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
<rdfs:label>is part of</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#takesCourse">
<rdfs:label>is taking</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#teacherOf">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Faculty"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Course"/>
<rdfs:label>teaches</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#teachingAssistantOf">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#TeachingAssistant"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Course"/>
<rdfs:label>is a teaching assistant for</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#tenured">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Professor"/>
<rdfs:label>is tenured:</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#undergraduateDegreeFrom">
<rdfs:subPropertyOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#degreeFrom"/>
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:range rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#University"/>
<rdfs:label>has an undergraduate degree from</rdfs:label>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#worksFor">
<rdfs:subPropertyOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#memberOf"/>
<rdfs:label>Works For</rdfs:label>
</owl:ObjectProperty>
<owl:DatatypeProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#age">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:label>is age</rdfs:label>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#emailAddress">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:label>can be reached at</rdfs:label>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#name">
<rdfs:label>name</rdfs:label>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#officeNumber">
<rdfs:label>office room No.</rdfs:label>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#researchInterest">
<rdfs:label>is researching</rdfs:label>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#telephone">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:label>telephone number</rdfs:label>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#title">
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:label>title</rdfs:label>
</owl:DatatypeProperty>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#AdministrativeStaff">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Employee"/>
<rdfs:label>administrative staff worker</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Article">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Publication"/>
<rdfs:label>article</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#AssistantProfessor">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Professor"/>
<rdfs:label>assistant professor</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#AssociateProfessor">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Professor"/>
<rdfs:label>associate professor</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Book">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Publication"/>
<rdfs:label>book</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Chair">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<owl:Restriction>
<owl:onProperty rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#headOf"/>
<owl:someValuesFrom rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Department"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Professor"/>
<rdfs:label>chair</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#ClericalStaff">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#AdministrativeStaff"/>
<rdfs:label>clerical staff worker</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#College">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
<rdfs:label>school</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#ConferencePaper">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Article"/>
<rdfs:label>conference paper</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Course">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Work"/>
<rdfs:label>teaching course</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Dean">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#headOf"/>
<owl:someValuesFrom rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#College"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Professor"/>
<rdfs:label>dean</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Department">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
<rdfs:label>university department</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Director">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<owl:Restriction>
<owl:onProperty rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#headOf"/>
<owl:someValuesFrom rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Program"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:label>director</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Employee">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<owl:Restriction>
<owl:onProperty rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#worksFor"/>
<owl:someValuesFrom rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:label>Employee</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Faculty">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Employee"/>
<rdfs:label>faculty member</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#FullProfessor">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Professor"/>
<rdfs:label>full professor</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#GraduateCourse">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Course"/>
<rdfs:label>Graduate Level Courses</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#GraduateStudent">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#takesCourse"/>
<owl:someValuesFrom rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#GraduateCourse"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:label>graduate student</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Institute">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
<rdfs:label>institute</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#JournalArticle">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Article"/>
<rdfs:label>journal article</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Lecturer">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Faculty"/>
<rdfs:label>lecturer</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Manual">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Publication"/>
<rdfs:label>manual</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization">
<rdfs:label>organization</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person">
<rdfs:label>person</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#PostDoc">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Faculty"/>
<rdfs:label>post doctorate</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Professor">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Faculty"/>
<rdfs:label>professor</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Program">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
<rdfs:label>program</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Publication">
<rdfs:label>publication</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Research">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Work"/>
<rdfs:label>research work</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#ResearchAssistant">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#worksFor"/>
<owl:someValuesFrom rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#ResearchGroup"/>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:label>university research assistant</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#ResearchGroup">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
<rdfs:label>research group</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Schedule">
<rdfs:label>schedule</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Software">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Publication"/>
<rdfs:label>software program</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Specification">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Publication"/>
<rdfs:label>published specification</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Student">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<owl:Restriction>
<owl:onProperty rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#takesCourse"/>
<owl:someValuesFrom rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Course"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:label>student</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#SystemsStaff">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#AdministrativeStaff"/>
<rdfs:label>systems staff worker</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#TeachingAssistant">
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<owl:Restriction>
<owl:onProperty rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#teachingAssistantOf"/>
<owl:someValuesFrom rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Course"/>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:label>university teaching assistant</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#TechnicalReport">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Article"/>
<rdfs:label>technical report</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#UndergraduateStudent">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Student"/>
<rdfs:label>undergraduate student</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#University">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
<rdfs:label>university</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#UnofficialPublication">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Publication"/>
<rdfs:label>unnoficial publication</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#VisitingProfessor">
<rdfs:subClassOf rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Professor"/>
<rdfs:label>visiting professor</rdfs:label>
</owl:Class>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Work">
<rdfs:label>Work</rdfs:label>
</owl:Class>
</rdf:RDF>
I need the ontology to be parsed in RDFXML format using <Description>
tags. How can I write nested <Description>
tags?
I used RDF/XML-ABBREV
for the intermediate results and the same errors raised, plus no xml:base
INFO raised for every parsed record even after adding the xml:base="http://swat.cse.lehigh.edu/onto/univ-bench.owl"
line to the rdf file !!!!!!!
I don't believe Description elements can be nested for lists.
I'd try the process in reverse - take an ontology with lists (such as the XML above), load it in Jena and output it as RDF/XML, it should produce correct RDF output.
Failing that we'll have to dig deeper on why Jena doesn't deal well with this format. I can't spot anything obviously wrong with it.
An example of an intersection containing a list:
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Employee">
<owl:intersectionOf rdf:parseType="Collection">
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
<owl:Restriction>
<owl:someValuesFrom>
<owl:Class rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Organization"/>
</owl:someValuesFrom>
<owl:onProperty>
<owl:ObjectProperty rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#worksFor"/>
</owl:onProperty>
</owl:Restriction>
</owl:intersectionOf>
<rdfs:label>Employee</rdfs:label>
</owl:Class>
:Chair a owl:Class ;
rdfs:label "chair" ;
rdfs:subClassOf :Professor ;
owl:intersectionOf ( :Person
[ a owl:Restriction ;
owl:onProperty :headOf ;
owl:someValuesFrom :Department
]
) .
owl:Class
can be replaced with
<rdf:Description rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Employee">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
Yes I can handle the classes, but not the restrictions
Hello, I am working on RDF/XML parser that parses RDF/XML ontology and converts it to OWLAxiom using ontology.axioms() method. I notice that in the output I have some wrong results: