From b4ce837dbfd4a21b6f65013af7274565c8a0c224 Mon Sep 17 00:00:00 2001 From: Sepideh Alassi Date: Tue, 22 Oct 2019 11:36:25 +0200 Subject: [PATCH] last update of BEOL ontologies (#1477) * feature (nehisc) initialize NeHiSc project * style (scicone) change the name of the project * feature (SciCoNe) start a history of science ontology * feature (SciCoNe) more HS:person properties added * feature (beol) remove HS onto add properties to VPArticle add properties to beol:person --- webapi/_test_data/all_data/admin-data.ttl | 1 + webapi/_test_data/ontologies/beol-onto.ttl | 304 ++++++++++++++++++- webapi/_test_data/ontologies/biblio-onto.ttl | 78 ++++- webapi/scripts/fuseki-load-test-data.sh | 3 +- 4 files changed, 367 insertions(+), 19 deletions(-) diff --git a/webapi/_test_data/all_data/admin-data.ttl b/webapi/_test_data/all_data/admin-data.ttl index 7b135c2745..65f1335c20 100644 --- a/webapi/_test_data/all_data/admin-data.ttl +++ b/webapi/_test_data/all_data/admin-data.ttl @@ -522,3 +522,4 @@ Die Internetpublikation macht das digitalisierte Korpus dieser Frühdrucke durc knora-admin:isInProject ; knora-admin:isInSystemAdminGroup "false"^^xsd:boolean ; knora-admin:isInProjectAdminGroup . + diff --git a/webapi/_test_data/ontologies/beol-onto.ttl b/webapi/_test_data/ontologies/beol-onto.ttl index 1377f4365c..e758cddf49 100644 --- a/webapi/_test_data/ontologies/beol-onto.ttl +++ b/webapi/_test_data/ontologies/beol-onto.ttl @@ -650,6 +650,228 @@ salsah-gui:guiElement salsah-gui:Searchbox . +### ########################################### +### beol:hasBrother + +:hasBrother rdf:type owl:ObjectProperty ; + + rdfs:subPropertyOf knora-base:hasLinkTo ; + + rdfs:label "hat Bruder"@de , + "has brother"@en ; + + rdfs:comment """Repräsentiert eine Geschwestern Beziehung"""@de ; + + knora-base:subjectClassConstraint :person ; + + knora-base:objectClassConstraint :person ; + + salsah-gui:guiElement salsah-gui:Searchbox . + + +### ########################################### +### beol:hasBrotherValue + +:hasBrotherValue rdf:type owl:ObjectProperty ; + + rdfs:subPropertyOf knora-base:hasLinkToValue ; + + knora-base:subjectClassConstraint :person ; + + knora-base:objectClassConstraint knora-base:LinkValue ; + + rdfs:label "hat Bruder"@de , + "has brother"@en ; + + rdfs:comment """Repräsentiert eine Geschwestern Beziehung"""@de ; + + salsah-gui:guiElement salsah-gui:Searchbox . + +### ########################################### +### beol:hasUncle + +:hasUncle rdf:type owl:ObjectProperty ; + + rdfs:subPropertyOf knora-base:hasLinkTo ; + + rdfs:label "hat Onkel"@de , + "has uncle"@en ; + + rdfs:comment """Repräsentiert eine Onkel-Neffe Beziehung"""@de ; + + knora-base:subjectClassConstraint :person ; + + knora-base:objectClassConstraint :person ; + + salsah-gui:guiElement salsah-gui:Searchbox . + + +### ########################################### +### beol:hasUncleValue + +:hasUncleValue rdf:type owl:ObjectProperty ; + + rdfs:subPropertyOf knora-base:hasLinkToValue ; + + knora-base:subjectClassConstraint :person ; + + knora-base:objectClassConstraint knora-base:LinkValue ; + + rdfs:label "hat Onkel"@de , + "has uncle"@en ; + + rdfs:comment """Repräsentiert eine Onkel-Neffe Beziehung"""@de ; + + salsah-gui:guiElement salsah-gui:Searchbox . + +### ########################################### +### beol:hasNephew + +:hasNephew rdf:type owl:ObjectProperty ; + + rdfs:subPropertyOf knora-base:hasLinkTo ; + + rdfs:label "hat Neffe"@de , + "has nephew"@en ; + + rdfs:comment """Repräsentiert eine Onkel-Neffe Beziehung"""@de ; + + knora-base:subjectClassConstraint :person ; + + knora-base:objectClassConstraint :person ; + + salsah-gui:guiElement salsah-gui:Searchbox . + + +### ########################################### +### beol:hasNephewValue + +:hasNephewValue rdf:type owl:ObjectProperty ; + + rdfs:subPropertyOf knora-base:hasLinkToValue ; + + knora-base:subjectClassConstraint :person ; + + knora-base:objectClassConstraint knora-base:LinkValue ; + + rdfs:label "hat Neffe"@de , + "has nephew"@en ; + + rdfs:comment """Repräsentiert eine Onkel-Neffe Beziehung"""@de ; + + salsah-gui:guiElement salsah-gui:Searchbox . + + +### ########################################### +### beol:hasDisciple + +:hasDisciple rdf:type owl:ObjectProperty ; + + rdfs:subPropertyOf knora-base:hasLinkTo ; + + rdfs:label "hat Schüler"@de , + "has disciple"@en ; + + rdfs:comment """Represents a Master-Disciple relation"""@en ; + + knora-base:subjectClassConstraint :person ; + + knora-base:objectClassConstraint :person ; + + salsah-gui:guiElement salsah-gui:Searchbox . + + +### ########################################### +### beol:hasDiscipleValue + +:hasDiscipleValue rdf:type owl:ObjectProperty ; + + rdfs:subPropertyOf knora-base:hasLinkToValue ; + + knora-base:subjectClassConstraint :person ; + + knora-base:objectClassConstraint knora-base:LinkValue ; + + rdfs:label "hat Schüler"@de , + "has disciple"@en ; + + rdfs:comment """Represents a Master-Disciple relation"""@en ; + + salsah-gui:guiElement salsah-gui:Searchbox . + +### ########################################### +### beol:hasPupil + +:hasPupil rdf:type owl:ObjectProperty ; + + rdfs:subPropertyOf knora-base:hasLinkTo ; + + rdfs:label "hat Schüler"@de , + "has pupil"@en ; + + rdfs:comment """Represents a Teacher-Pupil relation"""@en ; + + knora-base:subjectClassConstraint :person ; + + knora-base:objectClassConstraint :person ; + + salsah-gui:guiElement salsah-gui:Searchbox . + + +### ########################################### +### beol:hasPupilValue + +:hasPupilValue rdf:type owl:ObjectProperty ; + + rdfs:subPropertyOf knora-base:hasLinkToValue ; + + knora-base:subjectClassConstraint :person ; + + knora-base:objectClassConstraint knora-base:LinkValue ; + + rdfs:label "hat Schüler"@de , + "has pupil"@en ; + + rdfs:comment """Represents a Teacher-Pupil relation"""@en ; + + salsah-gui:guiElement salsah-gui:Searchbox . + +### ########################################### +### beol:hasMaster + +:hasMaster rdf:type owl:ObjectProperty ; + + rdfs:subPropertyOf knora-base:hasLinkTo ; + + rdfs:label "hat Lehrer"@de , + "has master"@en ; + + rdfs:comment """Represents a Master-Disciple relation"""@en ; + + knora-base:subjectClassConstraint :person ; + + knora-base:objectClassConstraint :person ; + + salsah-gui:guiElement salsah-gui:Searchbox . + + +### ########################################### +### beol:hasMasterValue + +:hasMasterValue rdf:type owl:ObjectProperty ; + + rdfs:subPropertyOf knora-base:hasLinkToValue ; + + knora-base:subjectClassConstraint :person ; + + knora-base:objectClassConstraint knora-base:LinkValue ; + + rdfs:label "hat Lehrer"@de , + "has master"@en ; + + rdfs:comment """Represents a Master-Disciple relation"""@en ; + + salsah-gui:guiElement salsah-gui:Searchbox . ### ########################################### ### beol:hasSection @@ -1358,8 +1580,6 @@ rdfs:label "Manuskripteintrag in"@de , "Manuscript entry in"@en ; - knora-base:subjectClassConstraint :manuscriptEntry ; - knora-base:objectClassConstraint :manuscript ; salsah-gui:guiElement salsah-gui:Searchbox . @@ -1372,8 +1592,6 @@ knora-base:objectClassConstraint knora-base:LinkValue ; - knora-base:subjectClassConstraint :manuscriptEntry ; - rdfs:subPropertyOf knora-base:hasLinkToValue ; rdfs:comment "Manuskripteintrag in"@de , @@ -2151,13 +2369,13 @@ [ rdf:type owl:Restriction ; owl:onProperty :manuscriptEntryOf ; - owl:cardinality "1"^^xsd:nonNegativeInteger ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; salsah-gui:guiOrder "2"^^xsd:nonNegativeInteger ] , [ rdf:type owl:Restriction ; owl:onProperty :manuscriptEntryOfValue ; - owl:cardinality "1"^^xsd:nonNegativeInteger ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; salsah-gui:guiOrder "2"^^xsd:nonNegativeInteger ] , [ @@ -2292,7 +2510,79 @@ owl:onProperty :mentionedIn ; owl:minCardinality "0"^^xsd:nonNegativeInteger ; salsah-gui:guiOrder "18"^^xsd:nonNegativeInteger - ] ; + ] , + [ + rdf:type owl:Restriction ; + owl:onProperty :hasBrotherValue ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "19"^^xsd:nonNegativeInteger + ] , + [ + rdf:type owl:Restriction ; + owl:onProperty :hasBrother ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "20"^^xsd:nonNegativeInteger + ] , + [ + rdf:type owl:Restriction ; + owl:onProperty :hasNephewValue ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "21"^^xsd:nonNegativeInteger + ] , + [ + rdf:type owl:Restriction ; + owl:onProperty :hasNephew ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "22"^^xsd:nonNegativeInteger + ], + [ + rdf:type owl:Restriction ; + owl:onProperty :hasUncleValue ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "23"^^xsd:nonNegativeInteger + ] , + [ + rdf:type owl:Restriction ; + owl:onProperty :hasUncle ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "23"^^xsd:nonNegativeInteger + ], + [ + rdf:type owl:Restriction ; + owl:onProperty :hasDiscipleValue ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "24"^^xsd:nonNegativeInteger + ] , + [ + rdf:type owl:Restriction ; + owl:onProperty :hasDisciple ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "24"^^xsd:nonNegativeInteger + ] , + [ + rdf:type owl:Restriction ; + owl:onProperty :hasPupilValue ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "25"^^xsd:nonNegativeInteger + ] , + [ + rdf:type owl:Restriction ; + owl:onProperty :hasPupil ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "25"^^xsd:nonNegativeInteger + ] , + [ + rdf:type owl:Restriction ; + owl:onProperty :hasMasterValue ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "26"^^xsd:nonNegativeInteger + ] , + [ + rdf:type owl:Restriction ; + owl:onProperty :hasMaster ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "26"^^xsd:nonNegativeInteger + ]; knora-base:resourceIcon "person.png" ; diff --git a/webapi/_test_data/ontologies/biblio-onto.ttl b/webapi/_test_data/ontologies/biblio-onto.ttl index f8b29d1203..a4c6d6002a 100644 --- a/webapi/_test_data/ontologies/biblio-onto.ttl +++ b/webapi/_test_data/ontologies/biblio-onto.ttl @@ -1312,12 +1312,12 @@ rdfs:subPropertyOf knora-base:hasLinkToValue . -### http://www.knora.org/ontology/0801/biblio#vpEndFolium -:vpEndFolium rdf:type owl:ObjectProperty ; +### http://www.knora.org/ontology/0801/biblio#vpEndPage +:vpEndPage rdf:type owl:ObjectProperty ; - rdfs:label "End Folium"@en ; + rdfs:label "End Page"@en ; - rdfs:comment """Represents the last folium of Varia Posthuma Article."""@en ; + rdfs:comment """Represents the last page of Varia Posthuma article."""@en ; knora-base:objectClassConstraint knora-base:TextValue ; @@ -1325,12 +1325,12 @@ rdfs:subPropertyOf knora-base:hasValue . -### http://www.knora.org/ontology/0801/biblio#vpStartFolium -:vpStartFolium rdf:type owl:ObjectProperty ; +### http://www.knora.org/ontology/0801/biblio#vpStartPage +:vpStartPage rdf:type owl:ObjectProperty ; - rdfs:label "Start Folium"@en ; + rdfs:label "Start Page"@en ; - rdfs:comment """Represents the start folium of Varia Posthuma Article."""@en ; + rdfs:comment """Represents the start page of Varia Posthuma article."""@en ; knora-base:objectClassConstraint knora-base:TextValue ; @@ -1338,6 +1338,38 @@ rdfs:subPropertyOf knora-base:hasValue . +### ########################################### +### biblio:isPrinted + +:isPrinted rdf:type owl:ObjectProperty ; + + rdfs:subPropertyOf knora-base:hasLinkTo ; + + rdfs:label "Der Manuskript ist publiziert"@de , + "Manuscript is printed"@en ; + + rdfs:comment """Der Manuskript ist publiziert"""@de , + """Manuscript is printed"""@en ; + + knora-base:objectClassConstraint :CollectionArticle ; + + salsah-gui:guiElement salsah-gui:Searchbox . + +### ########################################### +### biblio:isPrintedValue + +:isPrintedValue rdf:type owl:ObjectProperty ; + + knora-base:objectClassConstraint knora-base:LinkValue ; + + rdfs:subPropertyOf knora-base:hasLinkToValue ; + + rdfs:label "Der Manuskript ist publiziert"@de , + "Manuscript is printed"@en ; + + rdfs:comment """Der Manuskript ist publiziert"""@de , + """Manuscript is printed"""@en . + ### ########################################### ### biblio:isPublishedIn @@ -2348,13 +2380,13 @@ rdfs:subClassOf :Edition, [ rdf:type owl:Restriction ; - owl:onProperty :vpEndFolium; + owl:onProperty :vpEndPage; owl:minCardinality "0"^^xsd:nonNegativeInteger ; salsah-gui:guiOrder "0"^^xsd:nonNegativeInteger ] , [ rdf:type owl:Restriction ; - owl:onProperty :vpStartFolium; + owl:onProperty :vpStartPage; owl:minCardinality "0"^^xsd:nonNegativeInteger ; salsah-gui:guiOrder "1"^^xsd:nonNegativeInteger ] , @@ -2370,11 +2402,35 @@ owl:minCardinality "0"^^xsd:nonNegativeInteger ; salsah-gui:guiOrder "2"^^xsd:nonNegativeInteger ] , + [ + rdf:type owl:Restriction ; + owl:onProperty :isPrinted ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "3"^^xsd:nonNegativeInteger + ] , + [ + rdf:type owl:Restriction ; + owl:onProperty :isPrintedValue ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "3"^^xsd:nonNegativeInteger + ] , + [ + rdf:type owl:Restriction ; + owl:onProperty beol:manuscriptEntryOf ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "4"^^xsd:nonNegativeInteger + ] , + [ + rdf:type owl:Restriction ; + owl:onProperty beol:manuscriptEntryOfValue ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ; + salsah-gui:guiOrder "4"^^xsd:nonNegativeInteger + ] , [ rdf:type owl:Restriction ; owl:onProperty :hasURI; owl:minCardinality "0"^^xsd:nonNegativeInteger ; - salsah-gui:guiOrder "1"^^xsd:nonNegativeInteger + salsah-gui:guiOrder "5"^^xsd:nonNegativeInteger ] ; rdfs:label "Varia Posthuma Artikel"@de , "Varia Posthuma Article"@en ; diff --git a/webapi/scripts/fuseki-load-test-data.sh b/webapi/scripts/fuseki-load-test-data.sh index e66f7be7d8..28f997a328 100755 --- a/webapi/scripts/fuseki-load-test-data.sh +++ b/webapi/scripts/fuseki-load-test-data.sh @@ -18,4 +18,5 @@ curl -F filedata=@../_test_data/ontologies/beol-onto.ttl http://localhost:3030/k curl -F filedata=@../_test_data/ontologies/biblio-onto.ttl http://localhost:3030/knora-test/data?graph=http://www.knora.org/ontology/0801/biblio > /dev/null curl -F filedata=@../_test_data/all_data/biblio-data.ttl http://localhost:3030/knora-test/data?graph=http://www.knora.org/data/biblio > /dev/null curl -F filedata=@../_test_data/all_data/beol-data.ttl http://localhost:3030/knora-test/data?graph=http://www.knora.org/data/beol > /dev/null - +curl -F filedata=@../_test_data/ontologies/newton-onto.ttl http://localhost:3030/knora-test/data?graph=http://www.knora.org/ontology/0801/newton > /dev/null +curl -F filedata=@../_test_data/ontologies/leibniz-onto.ttl http://localhost:3030/knora-test/data?graph=http://www.knora.org/ontology/0801/leibniz > /dev/null \ No newline at end of file