diff --git a/UNIV-BENCH-OWL2DL.obda b/UNIV-BENCH-OWL2DL.obda new file mode 100644 index 000000000..b383b82b4 --- /dev/null +++ b/UNIV-BENCH-OWL2DL.obda @@ -0,0 +1,14 @@ +[PrefixDeclaration] +: http://benchmark/univ-bench-owl2# +dc: http://purl.org/dc/elements/1.1/ +owl: http://www.w3.org/2002/07/owl# +rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# +xml: http://www.w3.org/XML/1998/namespace +xsd: http://www.w3.org/2001/XMLSchema# +obda: https://w3id.org/obda/vocabulary# +rdfs: http://www.w3.org/2000/01/rdf-schema# +benchmark-dl: http://semantics.crl.ibm.com/univ-bench-dl.owl# + +[MappingDeclaration] @collection [[ +]] + diff --git a/univ-bench-2dl-rdfxmlformat.owl b/UNIV-BENCH-OWL2DL.owl similarity index 56% rename from univ-bench-2dl-rdfxmlformat.owl rename to UNIV-BENCH-OWL2DL.owl index f57d479ce..a15b9cbe5 100644 --- a/univ-bench-2dl-rdfxmlformat.owl +++ b/UNIV-BENCH-OWL2DL.owl @@ -1,6 +1,6 @@ - - + Univ-benchmark Ontology for OWL 2 OWL 2 Benchmark, ver Oct 18, 2019 @@ -28,287 +28,287 @@ - + - + - - - + + + - + - + - - + + - + - - + + - - + + - + - + - - - + + + - + - + - - + + - + - - + + - + - - - - + + + + - + - - - - - + + + + + - + - - - - - + + + + + - + - - - + + + publication has author - + - - - - + + + + - + - + - - + + - + - - - - - + + + + + - + - + - - - + + + - + - - - - + + + + - + - - - - + + + + - + - - - + + + - + - - - - - + + + + + - + - - - - + + + + - + - - - + + + - + - - - - + + + + - + - + - - + + - + - - - - - + + + + + - + - - - - - + + + + + - + - - - + + + - + - - - - - + + + + + - + - - + + - - - - - + + + + + @@ -316,136 +316,136 @@ - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - + + - + - - + + - + - - - - + + + + - + - - - - - + + + + + - + - - - - - + + + + + - + - + - - + + - + - - - - - + + + + + - + - - - - - + + + + + - + - - - - + + + + - + - + @@ -453,474 +453,470 @@ - + - - - - - + + + + + - + - - - - + + + + - + - + - + - - + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - - + + + + + - + - - + + - + - + - - + - + - - - + + + - + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - - + + + + - + - - - - + + + + - + - - - + + + - + - - - - + + + + - + - - - - + + + + - + - - + + - + - - + + - + - - + + - + - - - + + + - - + + - - + + - + - - + + - + - - + + - - + + - + - - + + - + - - + + - + - - + + - + - - - - + + + + - + - - - - + + + - - + + - + - + - - + + - + - - + + - + - - + + - + - - - - - + + + + - + - - - + + + - + - - + + - + - - + + - + - + - - + + - + - - - - + + + + - + - + - - + + - + - - - + + + publishes - + - - + + is about - + - - - + + + - + - - - - + + + + - + - - + + - + - - - - + + + - - + + @@ -937,101 +933,101 @@ - + - + - + - + - - + + - + - - + + - + - - + + - + - + - + - - + + - + - + name - + - + - + - + - + - + - + - - + + - + - - + + @@ -1047,808 +1043,707 @@ - + - - + + - + - - + + - + - - + + - + - - + + - - - + + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - - - - - - - - - - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - + + + - + - + - - - - - + + + + + - + - - + + - + - - + + - + - - + + - + - - + + - - + + courses offered in a department. student takes course and faculty teaches some course - + - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - + - + - - + + - + - - + + - + - + - - + + - + - + - - + + - + - - + + - + - - - + + + - + - - + + - + - + - + - - + + - + Employee - + - - - + + + - + - - + + - - - - - - - - - - + + + + + + + + + + Engineering - + - - + + - + - + - + - + - + - - + + - + - + - - + + - + - - + + - - - - - - - - - - + + + + + + + + + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - - - - - - + - - - - - - - - - - - - - + + - - - - - - - - - - + + + + + + + + + + HumanitiesAndSocial - + - - + + - + - - + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + - - + + - + - - + + - + - + - + - + 1 - + - + - + - - + + - + - - + + - + - - + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - - - - - - - + - - - + - + - - + + @@ -1859,343 +1754,318 @@ - + - - + + - + - - - + - + - - + + - + - - + + - + - + - + - + 1 - + - - - - - - - - - + - + - + - + - - + + - + - + - + - + - + 3 - + - + - + - - + + - + - + - - + + - - + - - + + - + - - + + - + - + - + - + 1 - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - - + + - + - - + + - + - - + + - + - - - - - - - + - - - - - - + + + + + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - - - - - - - - + + - - - - - - - - - - + + + + + + + + + + Science - + - + - + - - + + @@ -2204,327 +2074,229 @@ - - - - - - - - - - - - - - - - - + - - + + - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - + + - + - + - + - - 1 - + + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - - - - - - - + - - - + - + - - + + - - - - - - - - - + - + - - + + - + - - - - - - - - - - - - - - - - - - - - - + + - + - - + + - + - - + + Evaluates PhD students - - - - - - + - - - - - + + Mandatory courses for all UG students - + - - + + - + - + - + - + 1 - + - + - + - - + + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + Work @@ -2547,558 +2319,550 @@ - + - - - + - + - - - + - + - - + + - + - - + + - + - - + + - + - - - + - + - - + + - + - - + + - + - + - + - - - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + @@ -3120,12 +2884,6 @@ Kickboxing - - Soccer - - - Swimming - @@ -3140,129 +2898,164 @@ - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + - - - - - - - + + + + + + + + + + - - - - - + + + + + - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/UNIV-BENCH-OWL2DL.properties b/UNIV-BENCH-OWL2DL.properties new file mode 100644 index 000000000..acb9ff527 --- /dev/null +++ b/UNIV-BENCH-OWL2DL.properties @@ -0,0 +1,6 @@ +#Sat Nov 30 22:55:35 IST 2019 +jdbc.url= +jdbc.driver= +jdbc.user= +jdbc.name=f28f9df5-b6de-475e-86c4-c37020702712 +jdbc.password= diff --git a/UNIV-BENCH-OWL2EL.obda b/UNIV-BENCH-OWL2EL.obda new file mode 100644 index 000000000..b383b82b4 --- /dev/null +++ b/UNIV-BENCH-OWL2EL.obda @@ -0,0 +1,14 @@ +[PrefixDeclaration] +: http://benchmark/univ-bench-owl2# +dc: http://purl.org/dc/elements/1.1/ +owl: http://www.w3.org/2002/07/owl# +rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# +xml: http://www.w3.org/XML/1998/namespace +xsd: http://www.w3.org/2001/XMLSchema# +obda: https://w3id.org/obda/vocabulary# +rdfs: http://www.w3.org/2000/01/rdf-schema# +benchmark-dl: http://semantics.crl.ibm.com/univ-bench-dl.owl# + +[MappingDeclaration] @collection [[ +]] + diff --git a/UNIV-BENCH-OWL2EL.owl b/UNIV-BENCH-OWL2EL.owl new file mode 100644 index 000000000..aa7df6205 --- /dev/null +++ b/UNIV-BENCH-OWL2EL.owl @@ -0,0 +1,2665 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Employee + + + + + + + + + + + + + + + + + + Engineering + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + HumanitiesAndSocial + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Science + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Evaluates PhD students + + + + + + + + + + + + + + + + + Mandatory courses for all UG students + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AmericanFootball + + + Baseball + + + Kickboxing + + + Soccer + + + Swimming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/UNIV-BENCH-OWL2EL.properties b/UNIV-BENCH-OWL2EL.properties new file mode 100644 index 000000000..3e6818b8e --- /dev/null +++ b/UNIV-BENCH-OWL2EL.properties @@ -0,0 +1,6 @@ +#Sat Nov 30 22:23:04 IST 2019 +jdbc.url= +jdbc.driver= +jdbc.user= +jdbc.name=42750f8b-fc50-4d15-9078-ca7cf40369da +jdbc.password= diff --git a/UNIV-BENCH-OWL2QL.obda b/UNIV-BENCH-OWL2QL.obda new file mode 100644 index 000000000..b383b82b4 --- /dev/null +++ b/UNIV-BENCH-OWL2QL.obda @@ -0,0 +1,14 @@ +[PrefixDeclaration] +: http://benchmark/univ-bench-owl2# +dc: http://purl.org/dc/elements/1.1/ +owl: http://www.w3.org/2002/07/owl# +rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# +xml: http://www.w3.org/XML/1998/namespace +xsd: http://www.w3.org/2001/XMLSchema# +obda: https://w3id.org/obda/vocabulary# +rdfs: http://www.w3.org/2000/01/rdf-schema# +benchmark-dl: http://semantics.crl.ibm.com/univ-bench-dl.owl# + +[MappingDeclaration] @collection [[ +]] + diff --git a/univ-bench-2rl-rdfxmlformat.owl b/UNIV-BENCH-OWL2QL.owl similarity index 53% rename from univ-bench-2rl-rdfxmlformat.owl rename to UNIV-BENCH-OWL2QL.owl index 17950a036..032a6b06a 100644 --- a/univ-bench-2rl-rdfxmlformat.owl +++ b/UNIV-BENCH-OWL2QL.owl @@ -1,6 +1,6 @@ - - + @@ -24,882 +24,848 @@ - + - - - - + + + + - + - - - - - + - + - - - - - + + + + - + - - - - + + + + - + - - - + + + - + - - + + - + - - - - + + + + - + - - - - - + + + + + - + - - - - - + + + + + - + - - - + + + + publication has author - + - - - - + + + + - + - + - - + + - + - - - - - + + + + + - + - - - - + + + + - + - - - + + + + - + - - - - + + + + - + - - - + + + - + - - - - - + + + + + - + - - - - + + + + - + - - - + + + - + - - - - + + + + - + - - - + + + - + - - - - - + + + + + - + - - - - - + + + + + - + - - - + + + - + - - - - - + + + + + - + - - - - - - - - - - - - - + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - - - + + + + + - + - - - - + + + + - + - - - - - + + + + + - + - - - - - + + + + + - + - - - + + + - + - - - - - + + + + + - + - - - - - + + + + + - + - - - - + + + + - + - + - + - + - - - - - + + + + + - + - - - - + + + + - + - - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - - + + + + + - + - - + + - + - - - + + + - + - - - + + + - + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - - + + + + - + - - - - + + + + - + - - - + + + - + - - - - + + + + - + - - - - + + + + - + - - + + - + - - - + + - + - - + + - + - - - - - - - - - - - + + + - + - - + + - + - - - - - + + + + - + - - + + - + - - + + - + - - + + - + - - - - + + + + - + - - - - - - - - + + + + - + - - - - + + + - + - - + + - + - - + + - + - - - - - + + + + - + - - - + + + - + - - + + - + - - + + - + - + - - + + - + - - - - + + + + - + - - - + + + - + - - - + + + + publishes - + - - + + + is about - + - - - + + + - + - - - - + + + + - + - - + + - + - - - - - - - - + + + + @@ -915,96 +881,95 @@ - + - - - + + - + - - - + + - + - - + + - + - - + + + - + - - - + - + - - + + - + - + + name + - + - + - + - + - + - + - + - - + + - + - - + + @@ -1020,1374 +985,1268 @@ - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - - + - + - - + + - + - - + + - - + - + - - + + - + - - + + - + - - + + - + - - - - - - - - + + + + + + + + + + + + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - + + + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + + - + - - + + - - + - + - - - - - - - - - - - - - + + + + + + + + + + - + - - + + + + - - + + - - + - + - - + + - + - - + + - + - - - - - - - - + + + - + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + - - + + - - + Employee - + - - - + + + - + - - + + Engineering - + - - + + - + - + - + - - + + - + - - + + - - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + HumanitiesAndSocial - + - - + + - + - - + + - + - + - + - - + + - + - - + + - + - - - - - - - - - - - - - - - - 1 - - - - - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + + + + + + - + - - + + + - - - - - - - - - + + + + + - + - + - - + + - + - - - + - + - - + + - + - - + + - + - - + + - + - - + + - - + - + - - + + - + - - + + - + - - + + - - + - + - - + + - + - - - - - - - - - - - + - + - - + + - + - - + + - + - - + + - + - - + + - - + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - - + + - + - - + + - + - - + + - + - - - - - - - - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + Science - + - - + + - + - - + + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - - + - + - - + + - + - - + + - - + - + - - + + - + - - + + - + - - + + - - - - - + - + - - + + - + - - + + - + - - + + + + + + + + + + + + + + - + - - + + - + - - + + - + - - + + - + - - + + - - - - - - - - - - + - + - - + + - + - - + + - + - - - - - - - - - - - - - + + - + - - + + - + - - + + Evaluates PhD students - + - - + + - + - - + + Mandatory courses for all UG students - + - - + + - + - - + + - + - - + + - - + - + - - + + - + - - + + - + - - + + - - - - - - - + - - - - - - - - - - - - - - - - - + + - + - + @@ -2408,558 +2267,558 @@ - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + @@ -2981,10 +2840,10 @@ Kickboxing - + Soccer - + Swimming @@ -3001,128 +2860,127 @@ - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - + + + + + + + - - - - - + + + + - - - - - - - - - - + + + + + + + + + + - - - - - + + + + + - - - - - - - + + + + + + + - - - + + + diff --git a/UNIV-BENCH-OWL2QL.properties b/UNIV-BENCH-OWL2QL.properties new file mode 100644 index 000000000..2506844da --- /dev/null +++ b/UNIV-BENCH-OWL2QL.properties @@ -0,0 +1,6 @@ +#Sat Nov 30 21:59:33 IST 2019 +jdbc.url= +jdbc.driver= +jdbc.user= +jdbc.name=aac062ca-8564-4534-98fe-5f9b24ca7bcc +jdbc.password= diff --git a/UNIV-BENCH-OWL2RL.obda b/UNIV-BENCH-OWL2RL.obda new file mode 100644 index 000000000..b383b82b4 --- /dev/null +++ b/UNIV-BENCH-OWL2RL.obda @@ -0,0 +1,14 @@ +[PrefixDeclaration] +: http://benchmark/univ-bench-owl2# +dc: http://purl.org/dc/elements/1.1/ +owl: http://www.w3.org/2002/07/owl# +rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# +xml: http://www.w3.org/XML/1998/namespace +xsd: http://www.w3.org/2001/XMLSchema# +obda: https://w3id.org/obda/vocabulary# +rdfs: http://www.w3.org/2000/01/rdf-schema# +benchmark-dl: http://semantics.crl.ibm.com/univ-bench-dl.owl# + +[MappingDeclaration] @collection [[ +]] + diff --git a/UNIV-BENCH-OWL2RL.owl b/UNIV-BENCH-OWL2RL.owl new file mode 100644 index 000000000..74b57b1c1 --- /dev/null +++ b/UNIV-BENCH-OWL2RL.owl @@ -0,0 +1,3010 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Employee + + + + + + + + + + + + + + + + + + Engineering + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + HumanitiesAndSocial + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Science + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Evaluates PhD students + + + + + + + + + + + + + + + + + Mandatory courses for all UG students + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AmericanFootball + + + Baseball + + + Kickboxing + + + Soccer + + + Swimming + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/UNIV-BENCH-OWL2RL.properties b/UNIV-BENCH-OWL2RL.properties new file mode 100644 index 000000000..2e44c2cc5 --- /dev/null +++ b/UNIV-BENCH-OWL2RL.properties @@ -0,0 +1,6 @@ +#Sat Nov 30 22:35:14 IST 2019 +jdbc.url= +jdbc.driver= +jdbc.user= +jdbc.name=90a30817-abe3-4487-b217-df8e22ed5560 +jdbc.password= diff --git a/pom.xml b/pom.xml index 0f2b34f13..03736485e 100644 --- a/pom.xml +++ b/pom.xml @@ -121,12 +121,7 @@ 2.14.12 - - npm install - - npm - - + @@ -156,6 +151,8 @@ org.springframework.data spring-data-jpa + + org.hibernate hibernate-entitymanager diff --git a/src/main/java/ABoxGen/InstanceGenerator/AssignDegree.java b/src/main/java/ABoxGen/InstanceGenerator/AssignDegree.java index 1f61a6b6a..f78a8a63c 100644 --- a/src/main/java/ABoxGen/InstanceGenerator/AssignDegree.java +++ b/src/main/java/ABoxGen/InstanceGenerator/AssignDegree.java @@ -12,17 +12,21 @@ public class AssignDegree { College clg; Department dept; int univNum; - String randomUniv1,randomUniv2,randomUniv3; + String randomUniv1,randomUniv2,randomUniv3,profile; public AssignDegree(Generator gen,University universities[]) { this.gen = gen; this.universities = universities; this.univNum=gen.univNum; + this.profile=gen.profile; int i; + //getRandomPerson = new GetRandomPerson(); + for (i = 0; i < gen.univNum; ++i) { this.university = universities[i]; + if ((profile.matches("DL")) || (profile.matches("RL"))) { for (int j = 0; j < university.coEdCollegeNum; ++j) { this.clg = university.coEdColleges[j]; for (int k = 0; k < clg.deptNum; ++k) { @@ -176,5 +180,86 @@ public AssignDegree(Generator gen,University universities[]) { } } } + else + { + for (int j = 0; j < university.collegeNum; ++j) { + //System.out.println("degree"); + this.clg = university.colleges[j]; + for (int k = 0; k < clg.deptNum; ++k) { + this.dept = clg.depts[k]; + for (int l = 0; l < dept.pgStudentNum; ++l) { + randomUniv1 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + gen.objectPropertyAssertion(gen.getObjectProperty("hasUndergraduateDegreeFrom"),gen.getNamedIndividual(dept.pgStudents[l].studentInstance),gen.getNamedIndividual(randomUniv1)); + } + for (int l = 0; l < dept.phdStudentNum; ++l) { + randomUniv1 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + randomUniv2 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + gen.objectPropertyAssertion(gen.getObjectProperty("hasUndergraduateDegreeFrom"),gen.getNamedIndividual(dept.phdStudents[l].studentInstance),gen.getNamedIndividual(randomUniv1)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasMasterDegreeFrom"),gen.getNamedIndividual(dept.phdStudents[l].studentInstance),gen.getNamedIndividual(randomUniv2)); + } + for (int l = 0; l < dept.assistantProfessorNum; ++l) { + randomUniv1 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + randomUniv2 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + randomUniv3 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + gen.objectPropertyAssertion(gen.getObjectProperty("hasUndergraduateDegreeFrom"),gen.getNamedIndividual(dept.assistantProfessors[l].employeeInstance),gen.getNamedIndividual(randomUniv1)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasMasterDegreeFrom"),gen.getNamedIndividual(dept.assistantProfessors[l].employeeInstance),gen.getNamedIndividual(randomUniv2)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasDoctoralDegreeFrom"),gen.getNamedIndividual(dept.assistantProfessors[l].employeeInstance),gen.getNamedIndividual(randomUniv3)); + } + for (int l = 0; l < dept.associateProfessorNum; ++l) { + randomUniv1 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + randomUniv2 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + randomUniv3 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + gen.objectPropertyAssertion(gen.getObjectProperty("hasUndergraduateDegreeFrom"),gen.getNamedIndividual(dept.associateProfessors[l].employeeInstance),gen.getNamedIndividual(randomUniv1)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasMasterDegreeFrom"),gen.getNamedIndividual(dept.associateProfessors[l].employeeInstance),gen.getNamedIndividual(randomUniv2)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasDoctoralDegreeFrom"),gen.getNamedIndividual(dept.associateProfessors[l].employeeInstance),gen.getNamedIndividual(randomUniv3)); + } + for (int l = 0; l < dept.fullProfessorNum; ++l) { + randomUniv1 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + randomUniv2 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + randomUniv3 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + gen.objectPropertyAssertion(gen.getObjectProperty("hasUndergraduateDegreeFrom"),gen.getNamedIndividual(dept.fullProfessors[l].employeeInstance),gen.getNamedIndividual(randomUniv1)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasMasterDegreeFrom"),gen.getNamedIndividual(dept.fullProfessors[l].employeeInstance),gen.getNamedIndividual(randomUniv2)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasDoctoralDegreeFrom"),gen.getNamedIndividual(dept.fullProfessors[l].employeeInstance),gen.getNamedIndividual(randomUniv3)); + } + for (int l = 0; l < dept.visitingProfessorNum; ++l) { + randomUniv1 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + randomUniv2 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + randomUniv3 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + gen.objectPropertyAssertion(gen.getObjectProperty("hasUndergraduateDegreeFrom"),gen.getNamedIndividual(dept.visitingProfessors[l].employeeInstance),gen.getNamedIndividual(randomUniv1)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasMasterDegreeFrom"),gen.getNamedIndividual(dept.visitingProfessors[l].employeeInstance),gen.getNamedIndividual(randomUniv2)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasDoctoralDegreeFrom"),gen.getNamedIndividual(dept.visitingProfessors[l].employeeInstance),gen.getNamedIndividual(randomUniv3)); + } + for (int l = 0; l < dept.postDocNum; ++l) { + randomUniv1 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + randomUniv2 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + randomUniv3 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + gen.objectPropertyAssertion(gen.getObjectProperty("hasUndergraduateDegreeFrom"),gen.getNamedIndividual(dept.postDocs[l].employeeInstance),gen.getNamedIndividual(randomUniv1)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasMasterDegreeFrom"),gen.getNamedIndividual(dept.postDocs[l].employeeInstance),gen.getNamedIndividual(randomUniv2)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasDoctoralDegreeFrom"),gen.getNamedIndividual(dept.postDocs[l].employeeInstance),gen.getNamedIndividual(randomUniv3)); + } + for (int l = 0; l < dept.lecturerNum; ++l) { + randomUniv1 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + randomUniv2 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + gen.objectPropertyAssertion(gen.getObjectProperty("hasUndergraduateDegreeFrom"),gen.getNamedIndividual(dept.lecturers[l].employeeInstance),gen.getNamedIndividual(randomUniv1)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasMasterDegreeFrom"),gen.getNamedIndividual(dept.lecturers[l].employeeInstance),gen.getNamedIndividual(randomUniv2)); + } + for (int l = 0; l < dept.systemStaffNum; ++l) { + randomUniv1 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + randomUniv2 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + gen.objectPropertyAssertion(gen.getObjectProperty("hasUndergraduateDegreeFrom"),gen.getNamedIndividual(dept.systemStaffs[l].employeeInstance),gen.getNamedIndividual(randomUniv1)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasMasterDegreeFrom"),gen.getNamedIndividual(dept.systemStaffs[l].employeeInstance),gen.getNamedIndividual(randomUniv2)); + } + for (int l = 0; l < dept.clericalStaffNum; ++l) { + randomUniv1 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + gen.objectPropertyAssertion(gen.getObjectProperty("hasUndergraduateDegreeFrom"),gen.getNamedIndividual(dept.clericalStaffs[l].employeeInstance),gen.getNamedIndividual(randomUniv1)); + } + for (int l = 0; l < dept.otherStaffNum; ++l) { + randomUniv1 = universities[GetRandomNo.getRandomFromRange(0,univNum - 1)].univInstance; + gen.objectPropertyAssertion(gen.getObjectProperty("hasUndergraduateDegreeFrom"),gen.getNamedIndividual(dept.otherStaffs[l].employeeInstance),gen.getNamedIndividual(randomUniv1)); + } + } + } + } + } } } \ No newline at end of file diff --git a/src/main/java/ABoxGen/InstanceGenerator/College.java b/src/main/java/ABoxGen/InstanceGenerator/College.java index 314702a01..077601c7a 100644 --- a/src/main/java/ABoxGen/InstanceGenerator/College.java +++ b/src/main/java/ABoxGen/InstanceGenerator/College.java @@ -32,8 +32,9 @@ public College(University university, int collegeIndex, Boolean isWomanCollege) this.collegeInstance = university.univInstance + "WomenClgOf" + collegeDiscipline + this.collegeIndex; this.collegeCode = "U" + this.univIndex + "WC" + this.collegeIndex; gen.classAssertion(gen.getClass("College"), gen.getNamedIndividual(collegeInstance)); + gen.objectPropertyAssertion(gen.getObjectProperty("isAffiliatedOrganizationOf"), gen.getNamedIndividual(collegeInstance), gen.getNamedIndividual(university.univInstance)); gen.objectPropertyAssertion(gen.getObjectProperty("isWomenCollegeOf"), gen.getNamedIndividual(collegeInstance), gen.getNamedIndividual(university.univInstance)); - gen.objectPropertyAssertion(gen.getObjectProperty("isCollegeOfDiscipline"), gen.getNamedIndividual(collegeInstance), gen.getNamedIndividual(collegeDiscipline)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasCollegeDiscipline"), gen.getNamedIndividual(collegeInstance), gen.getNamedIndividual(collegeDiscipline)); this.deptNum = GetRandomNo.getRandomFromRange(gen.deptNum_Min, gen.deptNum_Max); this.depts = new Department[this.deptNum]; @@ -43,16 +44,20 @@ public College(University university, int collegeIndex, Boolean isWomanCollege) //Assign Courses this.assignCourse=new AssignCourse(this); + if ((profile.matches("DL")) || (profile.matches("RL")) || (profile.matches("EL"))) { dean = getRandomPerson.getRandomInternalProfessor(depts[GetRandomNo.getRandomFromRange(0,deptNum-1)]); gen.objectPropertyAssertion(gen.getObjectProperty("hasDean"),gen.getNamedIndividual(collegeInstance),gen.getNamedIndividual(dean)); - + } } else { this.collegeInstance = university.univInstance + "ClgOf" + collegeDiscipline + this.collegeIndex; this.collegeCode = "U" + this.univIndex + "C" + this.collegeIndex; gen.classAssertion(gen.getClass("College"), gen.getNamedIndividual(collegeInstance)); + gen.objectPropertyAssertion(gen.getObjectProperty("isAffiliatedOrganizationOf"), gen.getNamedIndividual(collegeInstance), gen.getNamedIndividual(university.univInstance)); gen.objectPropertyAssertion(gen.getObjectProperty("isCollegeOf"), gen.getNamedIndividual(collegeInstance), gen.getNamedIndividual(university.univInstance)); + gen.objectPropertyAssertion(gen.getObjectProperty("hasCollegeDiscipline"), gen.getNamedIndividual(collegeInstance), gen.getNamedIndividual(collegeDiscipline)); + this.deptNum = GetRandomNo.getRandomFromRange(gen.deptNum_Min, gen.deptNum_Max); this.depts = new Department[this.deptNum]; @@ -61,9 +66,10 @@ public College(University university, int collegeIndex, Boolean isWomanCollege) } //Assign Courses this.assignCourse=new AssignCourse(this); + if ((profile.matches("DL")) || (profile.matches("RL")) || (profile.matches("EL"))) { dean = getRandomPerson.getRandomInternalProfessor(depts[GetRandomNo.getRandomFromRange(0,deptNum-1)]); gen.objectPropertyAssertion(gen.getObjectProperty("hasDean"),gen.getNamedIndividual(collegeInstance),gen.getNamedIndividual(dean)); - + } } } } diff --git a/src/main/java/ABoxGen/InstanceGenerator/ConfigFile.java b/src/main/java/ABoxGen/InstanceGenerator/ConfigFile.java index afc29d365..53e040fc3 100644 --- a/src/main/java/ABoxGen/InstanceGenerator/ConfigFile.java +++ b/src/main/java/ABoxGen/InstanceGenerator/ConfigFile.java @@ -21,10 +21,10 @@ public class ConfigFile { Integer pgStudentNum_Max=null;//=40; Integer phdStudentNum_Min=null;//=2; Integer phdStudentNum_Max=null;//=10; - Integer ugCourseNum_Min=null;//=20; - Integer ugCourseNum_Max=null;//=35; - Integer electiveCourseNum_Min=null;//=25; - Integer electiveCourseNum_Max=null;//=35; + //Integer ugCourseNum_Min=null;//=20; + //Integer ugCourseNum_Max=null;//=35; + //Integer electiveCourseNum_Min=null;//=25; + //Integer electiveCourseNum_Max=null;//=35; Integer assistantProfessorNum_Min=null;//=15; Integer assistantProfessorNum_Max=null;//=20; Integer associateProfessorNum_Min=null;//=8; diff --git a/src/main/java/ABoxGen/InstanceGenerator/Course.java b/src/main/java/ABoxGen/InstanceGenerator/Course.java index c21440416..683118ba6 100644 --- a/src/main/java/ABoxGen/InstanceGenerator/Course.java +++ b/src/main/java/ABoxGen/InstanceGenerator/Course.java @@ -3,15 +3,19 @@ public class Course { Generator gen; -String departmentInstance,courseInstance; +Employee[] faculty; +String departmentInstance,courseInstance,facultyInstance; public Course(Department department,int courseIndex, String category){ this.gen=department.gen; + this.faculty=department.faculty; this.departmentInstance=department.departmentInstance; this.courseInstance=departmentInstance + category + department.deptName + courseIndex; - gen.classAssertion(gen.getClass("Course"),gen.getNamedIndividual(courseInstance)); + facultyInstance=faculty[courseIndex].employeeInstance; + gen.classAssertion(gen.getClass(category),gen.getNamedIndividual(courseInstance)); gen.objectPropertyAssertion(gen.getObjectProperty("offerCourse"),gen.getNamedIndividual(departmentInstance),gen.getNamedIndividual(courseInstance)); + gen.objectPropertyAssertion(gen.getObjectProperty("isTaughtBy"),gen.getNamedIndividual(courseInstance),gen.getNamedIndividual(facultyInstance)); } } diff --git a/src/main/java/ABoxGen/InstanceGenerator/Department.java b/src/main/java/ABoxGen/InstanceGenerator/Department.java index 9ed5cabab..162ef413e 100644 --- a/src/main/java/ABoxGen/InstanceGenerator/Department.java +++ b/src/main/java/ABoxGen/InstanceGenerator/Department.java @@ -4,11 +4,11 @@ public class Department { - int deptIndex; - int collegeIndex, progNum, ugStudentNum, pgStudentNum, phdStudentNum, ugCourseNum, electiveCourseNum; + int deptIndex,count=0,count2=0; + int collegeIndex, progNum, ugStudentNum, pgStudentNum, phdStudentNum,courseNum, ugCourseNum, electiveCourseNum; int totalFacultyNum, assistantProfessorNum, associateProfessorNum, fullProfessorNum, visitingProfessorNum, lecturerNum, postDocNum, systemStaffNum, clericalStaffNum, otherStaffNum; Student[] ugStudents, pgStudents, phdStudents; - Employee[] assistantProfessors, associateProfessors, fullProfessors, visitingProfessors, lecturers, postDocs, systemStaffs, clericalStaffs, otherStaffs; + Employee[] faculty,assistantProfessors, associateProfessors, fullProfessors, visitingProfessors, lecturers, postDocs, systemStaffs, clericalStaffs, otherStaffs; Course[] ugCourses,electiveCourses; Generator gen; Boolean womenStudents; @@ -42,10 +42,11 @@ public Department(College college,int deptIndex,Boolean womenStudents) { this.clericalStaffNum = GetRandomNo.getRandomFromRange(gen.clericalStaffNum_Min,gen.clericalStaffNum_Max); this.otherStaffNum = GetRandomNo.getRandomFromRange(gen.otherStaffNum_Min,gen.otherStaffNum_Max); //students count - + this.courseNum=totalFacultyNum+postDocNum; //number of courses - this.ugCourseNum = GetRandomNo.getRandomFromRange(gen.ugCourseNum_Min,gen.ugCourseNum_Max); //ug students take 4 ug courses - this.electiveCourseNum = GetRandomNo.getRandomFromRange(gen.electiveCourseNum_Min,gen.electiveCourseNum_Max); //ug students any 2 elective + this.ugCourseNum = GetRandomNo.getRandomFromRange((courseNum/2),2*(courseNum/3)); //ug students take 4 ug courses + this.electiveCourseNum = courseNum-ugCourseNum; + // GetRandomNo.//getRandomFromRange(gen.electiveCourseNum_Min,gen.electiveCourseNum_Max); ug students any 2 elective //number of programs in the deptt this.progNum = GetRandomNo.getRandomFromRange(gen.progNum_Min,gen.progNum_Max); //may be added to employee later @@ -67,7 +68,7 @@ public Department(College college,int deptIndex,Boolean womenStudents) { generateCourses(); //department chair chair=fullProfessors[GetRandomNo.getRandomFromRange(0,fullProfessorNum-1)].employeeInstance; - gen.objectPropertyAssertion(gen.getObjectProperty("hasHead"),gen.getNamedIndividual(departmentInstance),gen.getNamedIndividual(chair)); + gen.objectPropertyAssertion(gen.getObjectProperty("isHeadOf"),gen.getNamedIndividual(chair),gen.getNamedIndividual(departmentInstance)); } @@ -140,23 +141,36 @@ public void generateEmployees() { this.clericalStaffs = new Employee[this.clericalStaffNum]; this.otherStaffs= new Employee[this.otherStaffNum]; this.postDocs= new Employee[this.postDocNum]; + this.faculty=new Employee[this.courseNum]; for (int i = 0; i < this.assistantProfessorNum; ++i) { this.assistantProfessors[i] = new Employee(this,i,"AssistantProfessor"); + faculty[count]=assistantProfessors[i]; + count=count+1; } for (int i = 0; i < this.associateProfessorNum; ++i) { this.associateProfessors[i] = new Employee(this,i,"AssociateProfessor"); + faculty[count]=associateProfessors[i]; + count=count+1; } for (int i = 0; i < this.fullProfessorNum; ++i) { this.fullProfessors[i] = new Employee(this,i,"FullProfessor"); + faculty[count]=fullProfessors[i]; + count=count+1; } for (int i = 0; i < this.visitingProfessorNum; ++i) { this.visitingProfessors[i] = new Employee(this,i,"VisitingProfessor"); + faculty[count]=visitingProfessors[i]; + count=count+1; } for (int i = 0; i < this.lecturerNum; ++i) { this.lecturers[i] = new Employee(this,i,"Lecturer"); + faculty[count]=lecturers[i]; + count=count+1; } for (int i = 0; i < this.postDocNum; ++i) { this.postDocs[i] = new Employee(this,i,"PostDoc"); + faculty[count]=postDocs[i]; + count=count+1; } for (int i = 0; i < this.systemStaffNum; ++i) { this.systemStaffs[i] = new Employee(this,i,"SystemStaff"); @@ -174,10 +188,12 @@ public void generateCourses() { this.ugCourses= new Course[this.ugCourseNum]; this.electiveCourses= new Course[this.electiveCourseNum]; for (int i = 0; i < this.ugCourseNum; ++i) { - this.ugCourses[i] = new Course(this,i,"UGCourse_"); + this.ugCourses[i] = new Course(this,i,"UGCourse"); + count2=count2+1; } for (int i = 0; i < this.electiveCourseNum; ++i) { - this.electiveCourses[i] = new Course(this, i,"ElectiveCourse_"); + this.electiveCourses[i] = new Course(this, count2,"ElectiveCourse"); + count2=count2+1; } } diff --git a/src/main/java/ABoxGen/InstanceGenerator/Employee.java b/src/main/java/ABoxGen/InstanceGenerator/Employee.java index 64eaa35b9..2f16e2bc1 100644 --- a/src/main/java/ABoxGen/InstanceGenerator/Employee.java +++ b/src/main/java/ABoxGen/InstanceGenerator/Employee.java @@ -14,11 +14,10 @@ public Employee(Department department,int empIndex, String employeeType) { //gen.classAssertion(gen.getClass(employeeType),gen.getNamedIndividual(employeeInstance)); this.person=new Person(this , employeeInstance); gen.objectPropertyAssertion(gen.getObjectProperty("is" + employeeType+ "Of"),gen.getNamedIndividual(employeeInstance),gen.getNamedIndividual(departmentInstance)); - if(employeeType==("FullProfessor || AssistantProfessor || AssociateProfessor || VisitingProfessor || PostDoc || Lecturer " )) + if(employeeType=="FullProfessor" || employeeType=="AssistantProfessor" || employeeType=="AssociateProfessor" || employeeType=="VisitingProfessor" || employeeType=="PostDoc" || employeeType=="Lecturer" ) { gen.dataPropertyAssertion(gen.getDataProperty("hasResearchInterest"),gen.getNamedIndividual(employeeInstance),gen.getLiteral("SomeResearchTopic")); } - } } diff --git a/src/main/java/ABoxGen/InstanceGenerator/Generator.java b/src/main/java/ABoxGen/InstanceGenerator/Generator.java index 55e7f016e..e5e54dd38 100644 --- a/src/main/java/ABoxGen/InstanceGenerator/Generator.java +++ b/src/main/java/ABoxGen/InstanceGenerator/Generator.java @@ -16,9 +16,6 @@ import org.semanticweb.owlapi.util.DefaultPrefixManager; import org.semanticweb.owlapi.apibinding.OWLManager; import org.semanticweb.owlapi.model.*; -import org.semanticweb.owlapi.model.OWLDataFactory; -import org.semanticweb.owlapi.model.OWLOntologyManager; -import org.semanticweb.owlapi.model.OWLOntologyCreationException; public class Generator { @@ -86,7 +83,7 @@ public class Generator { String[] TOKEN_CollegeDiscipline= new String[]{"Engineering", "FineArts", "HumanitiesAndSocial","Management", "Science"}; String[] TOKEN_Engineering = new String[]{"AeronauticalEngineering","BiomedicalEngineering","ChemicalEngineering","CivilEngineering","ComputerEngineering","ElectricalEngineering","IndustryEngineering","MaterialScienceEngineering","MechanicalEngineering","PetroleumEngineering"}; String[] TOKEN_Management = new String[]{"DesignManagement", "FinancialAndAccountingManagement", "HumanResourceManagement", "MarketingManagement", "OperationsManagement", "ProjectManagement", "PublicRelationsManagement", "SalesManagement", "SupplyChainManagement", "RiskManagement"}; - String[] TOKEN_FineArts= new String[]{"Architecture", "AsianArts", "Drama", "LatinArts", "MediaArtsAndSciences", "MedievalArts", "ModernArts"," MusicsClass", "PerformingArts", "TheatreAndDance"}; + String[] TOKEN_FineArts= new String[]{"Architecture", "AsianArts", "Drama", "LatinArts", "MediaArtsAndSciences", "MedievalArts", "ModernArts","MusicsClass", "PerformingArts", "TheatreAndDance"}; String[] TOKEN_Science=new String[]{"Astronomy", "Biology", "Chemistry", "ComputerScience", "GeoScience", "MarineScience", "MaterialScience", "Mathematics", "Physics", "Statistics"}; String[] TOKEN_HumanitiesAndSocial=new String[]{"Anthropology", "Economics", "English", "History", "Humanities", "Linguistics", "ModernLanguages", "Philosophy", "Psychology", "Religions"}; @@ -119,48 +116,58 @@ public Generator() { } public static void main(String[] args) { - int univNum=1; - int seed = 350; - String profile= "DL"; - if(args.length==2) + int univNum=10; + int seed = 950; + String profile= "RL"; + //System.out.println(args[2]); + if(args.length==3) { univNum=Integer.parseInt(args[0]); seed=Integer.parseInt(args[1]); + profile= args[2]; } - else if (args.length==3) + else if (args.length==2) { univNum=Integer.parseInt(args[0]); seed=Integer.parseInt(args[1]); - profile= args[2]; + } else if (args.length==1) { univNum=Integer.parseInt(args[0]); } - + //System.out.println(profile); new Generator().start(univNum, seed, profile); } public void start(int univNum, int seed, String profile) { - //profile= new OWL2Profile(); + //System.out.println(profile); + this.profile=profile; + //System.out.println(".." + profile); - file2 = new File("univ-bench-2dl-rdfxmlformat.owl"); - if (profile=="EL"){ - file2 = new File("univ-bench-2el-rdfxmlformat.owl"); + if(profile.matches("EL")){ + System.out.println("EL"); + file2 = new File("UNIV-BENCH-OWL2EL.owl"); + } + else if (profile.matches("QL")) { + + System.out.println("QL"); + file2 = new File("UNIV-BENCH-OWL2QL.owl"); } - else if (profile=="QL") { - file2 = new File("univ-bench-2ql-rdfxmlformat.owl"); + else if (profile.matches("RL")) { + + System.out.println("RL"); + file2 = new File("UNIV-BENCH-OWL2RL.owl"); } - else if (profile=="RL") { - file2 = new File("univ-bench-2rl-rdfxmlformat.owl"); + else if (profile.matches("DL")) + { + System.out.println("DL"); + file2 = new File("UNIV-BENCH-OWL2DL.owl"); } - OWLOntology o = loadOWLOntology(file2); + OWLOntology o = loadOWLOntology(file2); OWLDocumentFormat format = manager.getOntologyFormat(o); - //System.out.println("Counts..."+ format); - //OWLReasoner reasoner = PelletReasonerFactory.getInstance().createReasoner(o); - // System.out.println(o); this.univNum = univNum; GetRandomNo.setSeed((long) seed); this.configFile=new ConfigFile(); @@ -213,14 +220,7 @@ else if (profile=="RL") { { this.sameHomeTownNum_Max=configFile.sameHomeTownNum_Max; } - if(configFile.isFriendOfNum_Min!=null) - { - this.isFriendOfNum_Min=configFile.isFriendOfNum_Min; - } - if(configFile.isFriendOfNum_Max!=null) - { - this.isFriendOfNum_Max=configFile.isFriendOfNum_Max; - } + if(configFile.isCrazyAboutNum_Min!=null) { this.isCrazyAboutNum_Min=configFile.isCrazyAboutNum_Min; @@ -361,6 +361,7 @@ else if (profile=="RL") { if(configFile.otherStaffNum_Max!=null){ this.otherStaffNum_Max=configFile.otherStaffNum_Max; } + /* if(configFile.ugCourseNum_Min!=null){ this.ugCourseNum_Min=configFile.ugCourseNum_Min; } @@ -373,6 +374,7 @@ else if (profile=="RL") { if(configFile.electiveCourseNum_Max!=null){ this.electiveCourseNum_Max=configFile.electiveCourseNum_Max; } + */ if(configFile.progNum_Min!=null){ this.progNum_Min=configFile.progNum_Min; } @@ -433,6 +435,7 @@ private void generate() { for (int i = 0; i < this.univNum; ++i) { this.universities[i] = new University(this, i); + System.out.println(i); } //Generate publications //create links across universities using Publication 'hasAuthor' some Person. 1 publication can have authors from different universities @@ -448,29 +451,38 @@ private void generate() { //assign internal and external professors as advisor this.assignAdvisor=new AssignAdvisor(this,universities); // hasUnderGraduateDegreeFrom,hasMastersDegreeFrom,hasDoctoralDegreeFrom - if (profile!="EL") { + this.assignDegree=new AssignDegree(this,universities); - } + //every deptt has evaluation committee this.evaluationCommittee=new EvaluationCommittee(this,universities); // ontology.axioms().forEach(System.out::println); //System.out.println("Counts..."+ ontology.getLogicalAxiomCount() + " "+ontology.getAxiomCount()); - + + OWLDocumentFormat format = manager.getOntologyFormat(o); + System.out.println("Counts..."+ format+ "...."+ o.getLogicalAxiomCount()); + try { - File file = new File(System.getProperty("user.dir")+ "\\output1.owl"); + File file = new File(System.getProperty("user.dir")+ "/" + "OWL2"+this.profile + "-" + univNum + "-output.owl"); // File file = new File("C:\\Users\\Gunjan\\Desktop\\owlbenchmarkingreferences\\OntoBench-master\\UnivBench2DL\\output1.owl"); // File file = new File("D:\\output1.owl"); if (!file.exists()) { file.mkdir(); } - OWLDocumentFormat format = manager.getOntologyFormat(o); + + + //OWLDocumentFormat format = manager.getOntologyFormat(o); + + // System.out.println("Counts..."+ format+ "...."+ o.getAxiomCount()); + System.out.println("Counts..."+ format+ "...."+ o.getLogicalAxiomCount()); //System.out.println("Counts..."+ format+ "...."+ o.getAxiomCount()); manager.saveOntology(o,format,IRI.create(file.toURI())); - System.out.println("Counts..."+ format+ "...."+ o.getAxiomCount()); + System.out.println("Done"); } catch (OWLOntologyStorageException e) { e.printStackTrace(); } + } public OWLOntology createOWLOntology(PrefixManager pm) { @@ -534,10 +546,9 @@ public OWLLiteral getLiteral(String name) { } public void addAxiomToOntology(OWLAxiom axiom) { - //System.out.println(axiom); - //ontology.getOWLOntologyManager().addAxiom(ontology, axiom); o.getOWLOntologyManager().addAxiom(o, axiom); + //add here } public void classAssertion(OWLClassExpression classExpression, OWLIndividual individual) { @@ -553,7 +564,6 @@ public void objectPropertyAssertion(OWLObjectProperty property, OWLIndividual su addAxiomToOntology(factory.getOWLObjectPropertyAssertionAxiom( property, subject, object)); } - } diff --git a/src/main/java/ABoxGen/InstanceGenerator/GetRandomPerson.java b/src/main/java/ABoxGen/InstanceGenerator/GetRandomPerson.java index 8e4ac0514..9588b4bc3 100644 --- a/src/main/java/ABoxGen/InstanceGenerator/GetRandomPerson.java +++ b/src/main/java/ABoxGen/InstanceGenerator/GetRandomPerson.java @@ -4,9 +4,9 @@ import org.apache.commons.collections4.Get; public class GetRandomPerson { - String person,personCategory,advisor; + String person,personCategory,advisor,profile; Generator gen; - int univNum,randomUnivNum,womenCollegeNum,randomWomenCollegeNum,coEdCollegeNum,randomCoEdCollegeNum,deptNum,randomDeptNum,personNum,randomPersonNum; + int univNum,randomUnivNum,womenCollegeNum,collegeNum,randomWomenCollegeNum,coEdCollegeNum,randomCollegeNum,randomCoEdCollegeNum,deptNum,randomDeptNum,personNum,randomPersonNum; University univ,otherUniv; College clg; Department dept; @@ -20,11 +20,12 @@ public GetRandomPerson(){ public String getRandomStudentOrFaculty(Generator gen, University universities[]) //across universities for publications { this.gen=gen; + this.profile=gen.profile; this.univNum=gen.univNum; this.randomUnivNum=GetRandomNo.getRandomFromRange(0,univNum-1); this.univ=universities[randomUnivNum]; - + if ((profile.matches("DL")) || (profile.matches("RL"))) { if(GetRandomNo.getRandomFromRange(0,10)==0) { this.womenCollegeNum = univ.womenCollegeNum; this.randomWomenCollegeNum = GetRandomNo.getRandomFromRange(0,womenCollegeNum - 1); @@ -32,9 +33,17 @@ public String getRandomStudentOrFaculty(Generator gen, University universities[] } else { this.coEdCollegeNum = univ.coEdCollegeNum; + //System.out.println(coEdCollegeNum); this.randomCoEdCollegeNum = GetRandomNo.getRandomFromRange(0,coEdCollegeNum - 1); this.clg=univ.coEdColleges[randomCoEdCollegeNum]; } + } + else + { + this.collegeNum=univ.collegeNum; + this.randomCollegeNum = GetRandomNo.getRandomFromRange(0,collegeNum - 1); + this.clg=univ.colleges[randomCollegeNum]; + } this.deptNum=clg.deptNum; this.randomDeptNum=GetRandomNo.getRandomFromRange(0,deptNum-1); this.dept=clg.depts[randomDeptNum]; @@ -150,10 +159,11 @@ public String getRandomStudentFacultyOrStaff(Generator gen, University universit { this.gen=gen; this.univNum=gen.univNum; + this.profile=gen.profile; this.randomUnivNum=GetRandomNo.getRandomFromRange(0,univNum-1); this.univ=universities[randomUnivNum]; - + if ((profile.matches("DL")) || (profile.matches("RL"))) { if(GetRandomNo.getRandomFromRange(0,10)==0) { this.womenCollegeNum = univ.womenCollegeNum; this.randomWomenCollegeNum = GetRandomNo.getRandomFromRange(0,womenCollegeNum - 1); @@ -164,6 +174,13 @@ public String getRandomStudentFacultyOrStaff(Generator gen, University universit this.randomCoEdCollegeNum = GetRandomNo.getRandomFromRange(0,coEdCollegeNum - 1); this.clg=univ.coEdColleges[randomCoEdCollegeNum]; } + } + else + { + this.collegeNum=univ.collegeNum; + this.randomCollegeNum = GetRandomNo.getRandomFromRange(0,collegeNum - 1); + this.clg=univ.colleges[randomCollegeNum]; + } this.deptNum=clg.deptNum; this.randomDeptNum=GetRandomNo.getRandomFromRange(0,deptNum-1); this.dept=clg.depts[randomDeptNum]; diff --git a/src/main/java/ABoxGen/InstanceGenerator/InterlinkedProperties.java b/src/main/java/ABoxGen/InstanceGenerator/InterlinkedProperties.java index 440185991..a0ea31487 100644 --- a/src/main/java/ABoxGen/InstanceGenerator/InterlinkedProperties.java +++ b/src/main/java/ABoxGen/InstanceGenerator/InterlinkedProperties.java @@ -12,7 +12,7 @@ public class InterlinkedProperties { University universities[]; ConfigFile configFile; Generator gen; - String crazyAbout; + String crazyAbout,profile; // int univNum; HashSet hash1,hash2,hash3,hash4,hash5; int sameHomeTownNum,isFriendOfNum,likesNum,lovesNum,isCrazyAboutNum,dislikesNum; @@ -21,6 +21,7 @@ public class InterlinkedProperties { public InterlinkedProperties(Generator gen,University universities[]){ this.gen=gen; + this.profile=gen.profile; //this.univNum=gen.univNum; this.universities=universities; getRandomInterest=new GetRandomInterest(); @@ -78,6 +79,7 @@ public InterlinkedProperties(Generator gen,University universities[]){ } } hash4= new HashSet(); + if ((profile.matches("DL")) || (profile.matches("RL"))|| (profile.matches("EL"))) { for (int a = 0; a < lovesNum; ++a) { String interest = getRandomInterest.getInterest(); if ((interest != null) && (!hash3.contains(interest))) { @@ -88,22 +90,25 @@ public InterlinkedProperties(Generator gen,University universities[]){ gen.objectPropertyAssertion(gen.getObjectProperty("loves"),gen.getNamedIndividual(person1),gen.getNamedIndividual(k.next())); } } + } //isCrazyAbout just one if(isCrazyAboutNum!=0) { crazyAbout=getRandomInterest.getInterest(); gen.objectPropertyAssertion(gen.getObjectProperty("isCrazyAbout"),gen.getNamedIndividual(person1),gen.getNamedIndividual(crazyAbout)); } + if ((profile.matches("DL")) || (profile.matches("RL"))|| (profile.matches("QL"))) { hash5= new HashSet(); for (int a = 0; a < dislikesNum; ++a) { String interest = getRandomInterest.getInterest(); - if ((interest != null) && (crazyAbout!=interest)&&(!hash3.contains(interest))&&(!hash4.contains(interest))) { - hash4.add(interest); + if ((interest != null) && (crazyAbout!=interest) && (!hash3.contains(interest)) && (!hash4.contains(interest))) { + hash5.add(interest); } - Iterator k = hash4.iterator(); + Iterator k = hash5.iterator(); while (k.hasNext()) { gen.objectPropertyAssertion(gen.getObjectProperty("dislikes"),gen.getNamedIndividual(person1),gen.getNamedIndividual(k.next())); } } + } } } } diff --git a/src/main/java/ABoxGen/InstanceGenerator/Person.java b/src/main/java/ABoxGen/InstanceGenerator/Person.java index 51a4f32c1..f7a5f6cee 100644 --- a/src/main/java/ABoxGen/InstanceGenerator/Person.java +++ b/src/main/java/ABoxGen/InstanceGenerator/Person.java @@ -17,12 +17,14 @@ public Person(Student student, String instance) { if(!student.womenStudents){ - if (profile=="DL" || profile=="RL") { + if ((profile.matches("DL")) || (profile.matches("RL"))) { + //System.out.println("manwoamn1"); gender = GetRandomNo.getRandomFromRange(0,1); if(gender==0) gen.classAssertion(gen.getClass("Woman"),gen.getNamedIndividual(instance)); else - gen.classAssertion(gen.getClass("Man"),gen.getNamedIndividual(instance));} + gen.classAssertion(gen.getClass("Man"),gen.getNamedIndividual(instance)); + } else gen.classAssertion(gen.getClass("Person"),gen.getNamedIndividual(instance)); } @@ -46,12 +48,17 @@ public Person(Student student, String instance) { public Person(Employee employee, String instance) { this.gen=employee.gen; this.profile=employee.profile; + if ((profile.matches("DL")) || (profile.matches("RL"))) { + //System.out.println("manwoamn2"); gender = GetRandomNo.getRandomFromRange(0,1); if(gender==0) gen.classAssertion(gen.getClass("Woman"),gen.getNamedIndividual(instance)); else - gen.classAssertion(gen.getClass( - "Man"),gen.getNamedIndividual(instance)); + gen.classAssertion(gen.getClass("Man"),gen.getNamedIndividual(instance)); + } + else + gen.classAssertion(gen.getClass("Person"),gen.getNamedIndividual(instance)); + String firstName=gen.map1.get(GetRandomNo.getRandomFromRange(0,30000)); String lastName= gen.map2.get(GetRandomNo.getRandomFromRange(0,150000)); @@ -69,16 +76,17 @@ public Person(ResearchGroup researchGroup, String instance) { this.gen=researchGroup.gen; this.profile=researchGroup.profile; - gender = GetRandomNo.getRandomFromRange(0,1); - if(gender==0) - { - gen.classAssertion(gen.getClass("Woman"),gen.getNamedIndividual(instance)); - //System.out.println(instance); - } + if ((profile.matches("DL")) || (profile.matches("RL"))) { + //System.out.println("manwoamn3"); + gender = GetRandomNo.getRandomFromRange(0,1); + if(gender==0) + gen.classAssertion(gen.getClass("Woman"),gen.getNamedIndividual(instance)); + else + gen.classAssertion(gen.getClass("Man"),gen.getNamedIndividual(instance)); + } else - {gen.classAssertion(gen.getClass("Man"),gen.getNamedIndividual(instance)); - //System.out.println(instance); - } + gen.classAssertion(gen.getClass("Person"),gen.getNamedIndividual(instance)); + String firstName=gen.map1.get(GetRandomNo.getRandomFromRange(0,30000)); String lastName= gen.map2.get(GetRandomNo.getRandomFromRange(0,150000)); diff --git a/src/main/java/ABoxGen/InstanceGenerator/Profile.java b/src/main/java/ABoxGen/InstanceGenerator/Profile.java new file mode 100644 index 000000000..5cd650edd --- /dev/null +++ b/src/main/java/ABoxGen/InstanceGenerator/Profile.java @@ -0,0 +1,51 @@ +package ABoxGen.InstanceGenerator; + +import org.semanticweb.owlapi.apibinding.OWLManager; +import org.semanticweb.owlapi.model.AxiomType; +import org.semanticweb.owlapi.model.OWLOntology; +import org.semanticweb.owlapi.model.OWLOntologyCreationException; +import org.semanticweb.owlapi.model.parameters.Imports; +import org.semanticweb.owlapi.profiles.OWL2DLProfile; +import org.semanticweb.owlapi.profiles.OWL2ELProfile; +import org.semanticweb.owlapi.profiles.OWL2QLProfile; +import org.semanticweb.owlapi.profiles.OWL2RLProfile; +import org.semanticweb.owlapi.profiles.OWLProfileReport; + +import java.io.File; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.stream.Stream; + +public class Profile { + + public static void main(String... args) throws OWLOntologyCreationException { + + + if (args.length == 0) { + System.err.println("Usage: owl-metrics [-v] file.owl"); + System.exit(0); + } + + final boolean verbose = args[0].equals("-v") || args[0].equals("-verbose"); + + int i = verbose ? 1 : 0; + + OWLOntology ontology = OWLManager.createOWLOntologyManager().loadOntologyFromOntologyDocument(new File("C:\\Users\\Gunjan\\Documents\\GitHub\\owl2dl-benchmark\\OWL2QL-1-output.owl")); + Map metrics = new LinkedHashMap<>(); + Stream.of(new OWL2DLProfile(), new OWL2RLProfile(), new OWL2ELProfile(), new OWL2QLProfile()) + .forEach(profile -> { + OWLProfileReport report = profile.checkOntology(ontology); + System.out.println(report); + if (!verbose) { + metrics.put(profile.getName(), report.isInProfile()); + } else { + metrics.put(profile.getName(), report.toString()); + } + } + ); + + metrics.forEach((k, v) -> System.out.format("%s: %s\n", k, v)); + + } + +} \ No newline at end of file diff --git a/src/main/java/ABoxGen/InstanceGenerator/ResearchGroup.java b/src/main/java/ABoxGen/InstanceGenerator/ResearchGroup.java index 5264e1a86..5076d66c1 100644 --- a/src/main/java/ABoxGen/InstanceGenerator/ResearchGroup.java +++ b/src/main/java/ABoxGen/InstanceGenerator/ResearchGroup.java @@ -20,7 +20,7 @@ public ResearchGroup(University university,int index) { gen.objectPropertyAssertion(gen.getObjectProperty("hasResearchProject"), gen.getNamedIndividual(researchGroupInstance), gen.getNamedIndividual(researchProjectInstance)); this.RANum = GetRandomNo.getRandomFromRange(gen.RANum_Min,gen.RANum_Max); for (int i = 0; i < this.RANum; ++i) { - this.RAInstance = researchGroupInstance+ "ResearchAssistant" + i; + this.RAInstance = researchGroupInstance+ "RA" + i; //System.out.print(RAInstance); //gen.classAssertion(gen.getClass("ResearchAssistant"), gen.getNamedIndividual(RAInstance)); gen.objectPropertyAssertion(gen.getObjectProperty("hasResearchAssistant"), gen.getNamedIndividual(researchGroupInstance),gen.getNamedIndividual(RAInstance)); diff --git a/src/main/java/ABoxGen/InstanceGenerator/University.java b/src/main/java/ABoxGen/InstanceGenerator/University.java index 29e7bc880..ae37d0b3c 100644 --- a/src/main/java/ABoxGen/InstanceGenerator/University.java +++ b/src/main/java/ABoxGen/InstanceGenerator/University.java @@ -30,7 +30,7 @@ public University(Generator gen, int univIndex) { }while(universityName.contains(cityName)); universityName.add(cityName); this.univName= "University of " + cityName;//from data dictionary - System.out.println("univname"+ univName); + //System.out.println( univName); this.configFile=new ConfigFile(); gen.classAssertion(gen.getClass("University"),gen.getNamedIndividual(univInstance) ); gen.dataPropertyAssertion(gen.getDataProperty("hasName"),gen.getNamedIndividual(univInstance),gen.getLiteral(univName)); @@ -38,13 +38,14 @@ public University(Generator gen, int univIndex) { this.researchGroupNum= GetRandomNo.getRandomFromRange(gen.researchGroupNum_Min,gen.researchGroupNum_Max); this.researchGroups = new ResearchGroup[this.researchGroupNum]; this.collegeNum = GetRandomNo.getRandomFromRange(gen.collegeNum_Min,gen.collegeNum_Max); - - if (profile=="DL" || profile=="RL") { - + //System.out.println("univ" + profile); + if (profile.matches("DL") || profile.matches("RL")) { + //System.out.println("herenowcl"); this.womenCollegeNum = GetRandomNo.getRandomFromRange(gen.womenCollegeNum_Min, gen.womenCollegeNum_Max); this.coEdCollegeNum = collegeNum- womenCollegeNum ; this.coEdColleges = new College[this.coEdCollegeNum]; this.womenColleges = new College[this.womenCollegeNum]; + if (this.womenCollegeNum != 0) { for(i = 0; i < this.womenCollegeNum; ++i) { @@ -58,6 +59,7 @@ public University(Generator gen, int univIndex) { } else { + this.colleges=new College[this.collegeNum]; for(i = 0; i < this.collegeNum; ++i) { this.colleges[i] = new College(this, i,false); } diff --git a/target/classes/ABoxGen/InstanceGenerator/AssignDegree.class b/target/classes/ABoxGen/InstanceGenerator/AssignDegree.class index 5d16fe6aa..f31a11633 100644 Binary files a/target/classes/ABoxGen/InstanceGenerator/AssignDegree.class and b/target/classes/ABoxGen/InstanceGenerator/AssignDegree.class differ diff --git a/target/classes/ABoxGen/InstanceGenerator/College.class b/target/classes/ABoxGen/InstanceGenerator/College.class index 2217b98db..87557a50c 100644 Binary files a/target/classes/ABoxGen/InstanceGenerator/College.class and b/target/classes/ABoxGen/InstanceGenerator/College.class differ diff --git a/target/classes/ABoxGen/InstanceGenerator/ConfigFile.class b/target/classes/ABoxGen/InstanceGenerator/ConfigFile.class index 69249e0b3..804c5f5bd 100644 Binary files a/target/classes/ABoxGen/InstanceGenerator/ConfigFile.class and b/target/classes/ABoxGen/InstanceGenerator/ConfigFile.class differ diff --git a/target/classes/ABoxGen/InstanceGenerator/Course.class b/target/classes/ABoxGen/InstanceGenerator/Course.class index 94ef18331..dca38e877 100644 Binary files a/target/classes/ABoxGen/InstanceGenerator/Course.class and b/target/classes/ABoxGen/InstanceGenerator/Course.class differ diff --git a/target/classes/ABoxGen/InstanceGenerator/Department.class b/target/classes/ABoxGen/InstanceGenerator/Department.class index 0fd001f27..290a3e3e7 100644 Binary files a/target/classes/ABoxGen/InstanceGenerator/Department.class and b/target/classes/ABoxGen/InstanceGenerator/Department.class differ diff --git a/target/classes/ABoxGen/InstanceGenerator/Employee.class b/target/classes/ABoxGen/InstanceGenerator/Employee.class index 972f1aee4..cc51d6a75 100644 Binary files a/target/classes/ABoxGen/InstanceGenerator/Employee.class and b/target/classes/ABoxGen/InstanceGenerator/Employee.class differ diff --git a/target/classes/ABoxGen/InstanceGenerator/Generator.class b/target/classes/ABoxGen/InstanceGenerator/Generator.class index 42261fec4..a3a23f97c 100644 Binary files a/target/classes/ABoxGen/InstanceGenerator/Generator.class and b/target/classes/ABoxGen/InstanceGenerator/Generator.class differ diff --git a/target/classes/ABoxGen/InstanceGenerator/GetRandomPerson.class b/target/classes/ABoxGen/InstanceGenerator/GetRandomPerson.class index 0131e6833..b736dcf4f 100644 Binary files a/target/classes/ABoxGen/InstanceGenerator/GetRandomPerson.class and b/target/classes/ABoxGen/InstanceGenerator/GetRandomPerson.class differ diff --git a/target/classes/ABoxGen/InstanceGenerator/InterlinkedProperties.class b/target/classes/ABoxGen/InstanceGenerator/InterlinkedProperties.class index c40ca6a27..76c7ba9e6 100644 Binary files a/target/classes/ABoxGen/InstanceGenerator/InterlinkedProperties.class and b/target/classes/ABoxGen/InstanceGenerator/InterlinkedProperties.class differ diff --git a/target/classes/ABoxGen/InstanceGenerator/Person.class b/target/classes/ABoxGen/InstanceGenerator/Person.class index 0a136d59a..eaf7855d3 100644 Binary files a/target/classes/ABoxGen/InstanceGenerator/Person.class and b/target/classes/ABoxGen/InstanceGenerator/Person.class differ diff --git a/target/classes/ABoxGen/InstanceGenerator/ResearchGroup.class b/target/classes/ABoxGen/InstanceGenerator/ResearchGroup.class index c9bd62f96..12822155d 100644 Binary files a/target/classes/ABoxGen/InstanceGenerator/ResearchGroup.class and b/target/classes/ABoxGen/InstanceGenerator/ResearchGroup.class differ diff --git a/target/classes/ABoxGen/InstanceGenerator/University.class b/target/classes/ABoxGen/InstanceGenerator/University.class index 8931842f8..03164bf59 100644 Binary files a/target/classes/ABoxGen/InstanceGenerator/University.class and b/target/classes/ABoxGen/InstanceGenerator/University.class differ diff --git a/univ-bench-2dl-rdfxmlformat.obda b/univ-bench-2dl-rdfxmlformat.obda index 1f7b73a6a..b383b82b4 100644 --- a/univ-bench-2dl-rdfxmlformat.obda +++ b/univ-bench-2dl-rdfxmlformat.obda @@ -1,5 +1,5 @@ [PrefixDeclaration] -: http://benchmark/univ-bench-owl2dl# +: http://benchmark/univ-bench-owl2# dc: http://purl.org/dc/elements/1.1/ owl: http://www.w3.org/2002/07/owl# rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# diff --git a/univ-bench-2dl-rdfxmlformat.properties b/univ-bench-2dl-rdfxmlformat.properties index 9df0be6de..689e676ae 100644 --- a/univ-bench-2dl-rdfxmlformat.properties +++ b/univ-bench-2dl-rdfxmlformat.properties @@ -1,6 +1,6 @@ -#Thu Oct 24 18:44:53 IST 2019 +#Sat Nov 23 02:04:46 IST 2019 jdbc.url= jdbc.driver= jdbc.user= -jdbc.name=a47d2d66-0dcb-446e-a606-606e23e8f1eb +jdbc.name=f46b3533-c181-41d8-87d6-7d54405c27c0 jdbc.password= diff --git a/univ-bench-2el-rdfxmlformat.obda b/univ-bench-2el-rdfxmlformat.obda index ba7e6f3cb..b383b82b4 100644 --- a/univ-bench-2el-rdfxmlformat.obda +++ b/univ-bench-2el-rdfxmlformat.obda @@ -1,5 +1,5 @@ [PrefixDeclaration] -: http://benchmark/univ-bench-owl2el# +: http://benchmark/univ-bench-owl2# dc: http://purl.org/dc/elements/1.1/ owl: http://www.w3.org/2002/07/owl# rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# diff --git a/univ-bench-2el-rdfxmlformat.owl b/univ-bench-2el-rdfxmlformat.owl deleted file mode 100644 index 903be549d..000000000 --- a/univ-bench-2el-rdfxmlformat.owl +++ /dev/null @@ -1,2689 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Employee - - - - - - - - - - - - - - - - - - Engineering - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HumanitiesAndSocial - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Science - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Evaluates PhD students - - - - - - - - - - - - - - - - - Mandatory courses for all UG students - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Soccer - - - Swimming - - - AmericanFootball - - - Baseball - - - Kickboxing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/univ-bench-2el-rdfxmlformat.properties b/univ-bench-2el-rdfxmlformat.properties index 9846de1ff..d146c2452 100644 --- a/univ-bench-2el-rdfxmlformat.properties +++ b/univ-bench-2el-rdfxmlformat.properties @@ -1,6 +1,6 @@ -#Wed Oct 23 22:05:26 IST 2019 +#Sat Nov 23 02:24:45 IST 2019 jdbc.url= jdbc.driver= jdbc.user= -jdbc.name=7bb5ca91-a695-48a0-9aa2-b80246f04cc7 +jdbc.name=a9325592-6b27-4533-aeb5-f71f9841afd8 jdbc.password= diff --git a/univ-bench-2ql-backup.obda b/univ-bench-2ql-backup.obda new file mode 100644 index 000000000..b383b82b4 --- /dev/null +++ b/univ-bench-2ql-backup.obda @@ -0,0 +1,14 @@ +[PrefixDeclaration] +: http://benchmark/univ-bench-owl2# +dc: http://purl.org/dc/elements/1.1/ +owl: http://www.w3.org/2002/07/owl# +rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# +xml: http://www.w3.org/XML/1998/namespace +xsd: http://www.w3.org/2001/XMLSchema# +obda: https://w3id.org/obda/vocabulary# +rdfs: http://www.w3.org/2000/01/rdf-schema# +benchmark-dl: http://semantics.crl.ibm.com/univ-bench-dl.owl# + +[MappingDeclaration] @collection [[ +]] + diff --git a/univ-bench-2ql-backup.properties b/univ-bench-2ql-backup.properties new file mode 100644 index 000000000..71813ac76 --- /dev/null +++ b/univ-bench-2ql-backup.properties @@ -0,0 +1,6 @@ +#Sun Nov 24 22:49:48 IST 2019 +jdbc.url= +jdbc.driver= +jdbc.user= +jdbc.name=b2d88f7a-2508-4714-a369-3add46cebba8 +jdbc.password= diff --git a/univ-bench-2ql-rdfxmlformat.obda b/univ-bench-2ql-rdfxmlformat.obda index a980b7852..b383b82b4 100644 --- a/univ-bench-2ql-rdfxmlformat.obda +++ b/univ-bench-2ql-rdfxmlformat.obda @@ -1,5 +1,5 @@ [PrefixDeclaration] -: http://benchmark/univ-bench-owl2ql# +: http://benchmark/univ-bench-owl2# dc: http://purl.org/dc/elements/1.1/ owl: http://www.w3.org/2002/07/owl# rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# diff --git a/univ-bench-2ql-rdfxmlformat.owl b/univ-bench-2ql-rdfxmlformat.owl index a4925e412..03080d2a6 100644 --- a/univ-bench-2ql-rdfxmlformat.owl +++ b/univ-bench-2ql-rdfxmlformat.owl @@ -1,6 +1,6 @@ - - + @@ -24,877 +24,859 @@ - + - - - - + + + + - + - - - - + - + - - - - + + + + - + - - - - + + + + - + - - - + + + - + - - + + - + - - - - + + + + - + - - - - - + + + + + - + - - - - - + + + + + - + - - - + + + publication has author - + - - - - + + + + - + - + - - + + - + - - - - - + + + + + - + - - - - + + + + - + - - - + + + + - + - - - - + + + + - + - - - + + + - + - - - - - + + + + + - + - - - - + + + + - + - - - + + + - + - - - - + + + + - + - - - + + + - + - - - - - + + + + + - + - - - - - + + + + + - + - - - + + + - + - - - - - + + + + + - + - - - - - - - - - - - - - + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - - + + + + + - + - - - - + + + + - + - - - - - + + + + + - + - - - - - + + + + + - + - - - + + + - + - - - - - + + + + + - + - - - - - + + + + + - + - - - - + + + + - + - + - + - - - - - + + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - - - - - + + + + + - + - - + + - + - - - + + + - + - - - + + + - + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - - + + + + - + - - - - + + + + - + - - - + + + - + - - - - + + + + - + - - - - + + + + - + - - + + - + - - + + - + - - + + - + - - - - - - - - - - - + + + - + - - + + - + - - - - + + + + - + - - + + - + - - + + - + - - + + - + - - - - + + + + - + - - - - - - - - + + + + - + - - - + + + - + - - + + - + - - + + - + - - - - + + + + - + - - - + + + - + - - + + - + - - + + - + - + - - + + + + + + + + + + + + + - + - - - - + + + + - + - - - + + + - + - - - + + + publishes - + - - + + is about - + - - - + + + - + - - - - + + + + - + - - + + - + - - - - - - - - + + + + @@ -910,96 +892,95 @@ - + - - - + + - + - - + + - + - - + + - + - - - + + + - + - + - + - - + + - + - + name - + - + - + - + - + - + - + - - + + - + - - + + @@ -1015,1314 +996,1040 @@ - - - - - - - - - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - - - - - - - - - - - - - - - - - - - + + - + - - - - - - - - - - - - - + + - + - - + + - + - - + + - + - - + + - + - + - - + + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - + + + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - - - - - - - - - - - + + - + - - - - - - - - - - - - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - - - - - - - + + - + - - + + + - + - - + + - - - - - - - - - - - - - - - - + - - - + - - - - - - - - - + + + + - + Employee - + - - - + + + - + - - + + Engineering - + - - + + - + - + - + - + - - - - - - - - - + + + + - + - + - - + + + + + + + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - HumanitiesAndSocial + + - + - - + + + HumanitiesAndSocial - + - - + + - + - - - - - - - - + + - + - - - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - - - - - - - - - - - - - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - - - - - - - - - - - + + - + - - + + - + - + - - - - - - - - - + + + + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - - - - - - - - - - - + + - + - - + + - + - - + + - + - - + + - + - - - + - + - - - - - - - - + + - + - - + + - + - - + + - + - - - - - - - - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + Science - + - - - - - - - - - - - - - - - - - - - - + + - + - - + + - + - - + + - + - - + + - + - - - - - - - - - - - - - + + - + - + - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - - - - - - - - - + + + + - + - + - - + + - + - - + + - + - - + + - + - - - - - - - - - - - - - + + - - - - - - - + - - - - + + Evaluates PhD students - + - - + + - + - - + + Mandatory courses for all UG students - - - - - - - - - + - - - - - - - - - - - - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + @@ -2343,558 +2050,558 @@ - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + @@ -2916,10 +2623,10 @@ Kickboxing - + Soccer - + Swimming @@ -2936,128 +2643,128 @@ - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - + + + + + + + - - - - - + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - + + + + + - - - - - - - + + + + + + + - - - + + + diff --git a/univ-bench-2ql-rdfxmlformat.properties b/univ-bench-2ql-rdfxmlformat.properties index 18fdfca84..7ad4dd0fa 100644 --- a/univ-bench-2ql-rdfxmlformat.properties +++ b/univ-bench-2ql-rdfxmlformat.properties @@ -1,6 +1,6 @@ -#Thu Oct 24 18:44:36 IST 2019 +#Sun Nov 24 13:34:05 IST 2019 jdbc.url= jdbc.driver= jdbc.user= -jdbc.name=8c7f2115-d55a-4fc2-a9c5-771a692d5d70 +jdbc.name=a64d0051-84ff-4358-8bdd-8179ae094dea jdbc.password= diff --git a/univ-bench-2rl(final).obda b/univ-bench-2rl(final).obda new file mode 100644 index 000000000..b383b82b4 --- /dev/null +++ b/univ-bench-2rl(final).obda @@ -0,0 +1,14 @@ +[PrefixDeclaration] +: http://benchmark/univ-bench-owl2# +dc: http://purl.org/dc/elements/1.1/ +owl: http://www.w3.org/2002/07/owl# +rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# +xml: http://www.w3.org/XML/1998/namespace +xsd: http://www.w3.org/2001/XMLSchema# +obda: https://w3id.org/obda/vocabulary# +rdfs: http://www.w3.org/2000/01/rdf-schema# +benchmark-dl: http://semantics.crl.ibm.com/univ-bench-dl.owl# + +[MappingDeclaration] @collection [[ +]] + diff --git a/univ-bench-2rl(final).properties b/univ-bench-2rl(final).properties new file mode 100644 index 000000000..3a4ca23c4 --- /dev/null +++ b/univ-bench-2rl(final).properties @@ -0,0 +1,6 @@ +#Tue Nov 26 00:51:50 IST 2019 +jdbc.url= +jdbc.driver= +jdbc.user= +jdbc.name=d72e788b-3604-4302-8504-986f5195f492 +jdbc.password= diff --git a/univ-bench-2rl-rdfxmlformat.obda b/univ-bench-2rl-rdfxmlformat.obda index 57f897a37..b383b82b4 100644 --- a/univ-bench-2rl-rdfxmlformat.obda +++ b/univ-bench-2rl-rdfxmlformat.obda @@ -1,5 +1,5 @@ [PrefixDeclaration] -: http://benchmark/univ-bench-owl2rl# +: http://benchmark/univ-bench-owl2# dc: http://purl.org/dc/elements/1.1/ owl: http://www.w3.org/2002/07/owl# rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# diff --git a/univ-bench-2rl-rdfxmlformat.properties b/univ-bench-2rl-rdfxmlformat.properties index 017e9fab6..4dfa60f33 100644 --- a/univ-bench-2rl-rdfxmlformat.properties +++ b/univ-bench-2rl-rdfxmlformat.properties @@ -1,6 +1,6 @@ -#Thu Oct 24 18:44:33 IST 2019 +#Sun Nov 24 12:05:39 IST 2019 jdbc.url= jdbc.driver= jdbc.user= -jdbc.name=d9c5b66e-36b7-4fec-b249-51e4d4584796 +jdbc.name=7300f463-0d1a-499b-903f-67780a71d07a jdbc.password=