Skip to content

Commit

Permalink
add missing classes and refactor onto and shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepideh Alassi committed Jul 25, 2024
1 parent a885e87 commit f7be383
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 97 deletions.
77 changes: 34 additions & 43 deletions journeyStar.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -137,29 +137,14 @@ js:NaturalPhenomena rdf:type owl:Class ;
"Natural Phenomena"@en;
rdfs:comment "A natural phenomena (eg. earthquake, fire)." .

######################
## Documents / Text ##
######################
### http://journey-star.dhlab.unibas.ch/ontology/JourneyStar#Currency ###
js:Currency rdf:type owl:Class ;
rdfs:subClassOf dbo:Currency: ;
rdfs:label "Währung"@de,
"Currency"@en;
rdfs:comment "A class representing a currency associated with a monetary value." .


### http://journey-star.dhlab.unibas.ch/ontology/JourneyStar#TravelDiary ###
js:TravelDiary rdf:type owl:Class ;
rdfs:label "Reisetagebuch"@de ,
"Travel Diary"@en ;
rdfs:comment "A travel diary."@en .

### http://journey-star.dhlab.unibas.ch/ontology/JourneyStar#Entry ###
js:Entry rdf:type owl:Class ;
rdfs:label "Dokument"@de ,
"Document"@en ;
rdfs:comment "An entry in a diary."@en .

### http://journey-star.dhlab.unibas.ch/ontology/JourneyStar#TextContent ###
js:TextContent rdf:type owl:Class ;
rdfs:label "Text-Inhalt"@de ,
"Text Content"@en ;
rdfs:comment "The text content of an entry."@en .

##################
### Predicates ###
##################
Expand Down Expand Up @@ -348,19 +333,6 @@ js:accordingTo rdf:type owl:ObjectProperty;
"According To"@en ;
rdfs:comment "Link to the person who narrated the info."@en .


### http://journey-star.dhlab.unibas.ch/ontology/JourneyStar#hasTextContent
js:hasTextContent rdf:type owl:ObjectProperty;
rdfs:label "Text-Inhalt"@de,
"Text Content"@en;
rdfs:comment "The text content of an entry in a diary."@en.

### http://journey-star.dhlab.unibas.ch/ontology/JourneyStar#hasText
js:hasText rdf:type owl:DatatypeProperty;
rdfs:label "hat Text"@de,
"has text"@en;
rdfs:comment "The actual text of a text content."@en.

### http://journey-star.dhlab.unibas.ch/ontology/JourneyStar#hasWikiLink
js:hasWikiLink rdf:type owl:DatatypeProperty ;
rdfs:label "hat link zu einer Wikidata Seite"@de ,
Expand All @@ -375,12 +347,31 @@ js:hasGnd rdf:type owl:DatatypeProperty ;

### http://journey-star.dhlab.unibas.ch/ontology/JourneyStar#hasGeonameID
js:hasGeonameID rdf:type owl:DatatypeProperty ;
rdfs:label "GeonameID"@de ,
"GeonameID"@en ;
rdfs:comment "The geoname ID of a location."@en .

### http://journey-star.dhlab.unibas.ch/ontology/JourneyStar#hasTransit
js:hasTransitFrom rdf:type owl:ObjectProperty ;
rdfs:label "Transit von"@de ,
"Transit from"@en ;
rdfs:comment "The transit from a location."@en .
rdfs:label "GeonameID"@de ,
"GeonameID"@en ;
rdfs:comment "The geoname ID of a location."@en .

### http://journey-star.dhlab.unibas.ch/ontology/JourneyStar#transitThrough
js:transitThrough rdf:type owl:ObjectProperty ;
rdfs:label "Transit durch"@de ,
"Transit through"@en ;
rdfs:comment "The transit through a location."@en .

### http://journey-star.dhlab.unibas.ch/ontology/JourneyStar#hasSubunit
js:hasSubunit rdf:type owl:ObjectProperty ;
rdfs:label "Untereinheit"@de ,
"Subunit"@en ;
rdfs:comment "Subunit of a currency."@en .


### http://journey-star.dhlab.unibas.ch/ontology/JourneyStar#value
js:value rdf:type owl:ObjectProperty ;
rdfs:label "Wert"@de ,
"Value"@en ;
rdfs:comment "Monetary worth of a currency with respect to its subunit."@en .

### http://journey-star.dhlab.unibas.ch/ontology/JourneyStar#alternativeName
js:alternativeName rdf:type owl:ObjectProperty ;
rdfs:label "alternativer Name"@de ,
"alternative Name"@en ;
rdfs:comment "Other names used."@en .
122 changes: 68 additions & 54 deletions journeyStar_shacl.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ js-shacl:PersonShape a sh:NodeShape ;
[
sh:path schema:gender ;
sh:or ([sh:datatype xsd:string ]
[sh:in ( schema:Female schema:Male )]);
[sh:in ( schema:Female schema:Male )]);
] ,
[
sh:path schema:birthDate ;
Expand Down Expand Up @@ -158,7 +158,9 @@ js-shacl:EventShape a sh:NodeShape;
sh:property
[
sh:path js:hasParticipant;
sh:nodeKind sh:IRI;
sh:or ( [sh:class js:Person ]
[sh:datatype xsd:anyURI ]
[sh:nodeKind sh:IRI ]);
] ,
[
sh:path js:hasLocation;
Expand Down Expand Up @@ -243,8 +245,8 @@ js-shacl:SightSeeingShape a sh:NodeShape;
sh:path js:sightingOf;
sh:minCount 1 ;
sh:or ([sh:datatype xsd:anyURI ]
[sh:nodeKind sh:IRI]
[sh:datatype xsd:string ]);
[sh:nodeKind sh:IRI]
[sh:datatype xsd:string ]);
].

### Shape for Class Dining ###
Expand Down Expand Up @@ -272,35 +274,27 @@ js-shacl:EntertainmentShape a sh:NodeShape;
] .


### Shape for Class Entry ###
### Shape for Class Currency ###
################################
js-shacl:EntryShape a sh:NodeShape ;
sh:targetClass js:Entry ;
js-shacl:CurrencyShape a sh:NodeShape;
sh:targetClass js:Currency;
sh:property
[
sh:path js:hasTextContent ;
sh:path schema:name;
sh:minCount 1 ;
sh:node js-shacl:TextContentShape;
],
sh:datatype xsd:string;
] ,
[
sh:path js:hasDate ;
sh:or ( [sh:datatype xsd:dateTime ]
[sh:datatype xsd:date ]
[sh:datatype xsd:gYear ]) ;
] .


### Shape for Class TextContent ###
################################
js-shacl:TextContentShape a sh:NodeShape;
sh:targetClass js:TextContent;
sh:property
sh:path js:hasSubunit;
sh:or ([sh:node js-shacl:CurrencyShape]
[sh:nodeKind sh:IRI]
[sh:datatype xsd:anyURI]
)
] ,
[
sh:path js:hasText;
sh:minCount 1 ;
sh:path js:alternativeName;
sh:datatype xsd:string;
].

] .

# ##############################################################
## Shapes for Star Properties
Expand All @@ -311,107 +305,112 @@ js-shacl:TextContentShape a sh:NodeShape;
js-shacl:calendarPropertyShape
a sh:NodeShape ;
sh:targetObjectsOf js:calendar ;
sh:in (dbr:Julian_calendar dbr:Gregorian_calendar dbr:Islamic_calendar) .
sh:or ( [sh:in (dbr:Julian_calendar dbr:Gregorian_calendar dbr:Islamic_calendar)]
[sh:datatype xsd:anyURI]
[sh:nodeKind sh:IRI ]) .

### Shape for accordingTo ###
################################
js-shacl:accordingToPropertyShape
a sh:NodeShape ;
sh:targetObjectsOf js:accordingTo ;
sh:or ([sh:node js-shacl:PersonShape]
[sh:nodeKind sh:IRI]) .
[sh:nodeKind sh:IRI]
[sh:datatype xsd:anyURI]) .

### Shape for Property mentionedIn ###
################################
js-shacl:mentionedInPropertyShape
a sh:NodeShape ;
sh:targetObjectsOf js:mentionedIn ;
sh:or ([sh:node js-shacl:EntryShape]
sh:or ([sh:datatype xsd:anyURI]
[sh:nodeKind sh:IRI]) .

### Shape for Property hasDescription ###
################################
js-shacl:hasDescriptionPropertyShape
a sh:NodeShape ;
sh:targetObjectsOf js:hasDescription ;
sh:or ([ sh:datatype xsd:string ]
[ sh:nodeKind sh:IRI ]) .
sh:or ([sh:datatype xsd:string ]
[sh:datatype xsd:anyURI]
[sh:nodeKind sh:IRI ]) .

### Shape for Property origin ###
################################
js-shacl:originPropertyShape
a sh:NodeShape ;
sh:targetObjectsOf js:origin ;
sh:or ([sh:class js:Location]
[sh:nodeKind sh:IRI]) .
[sh:nodeKind sh:IRI]) .

### Shape for Property destination ###
################################
js-shacl:destinationPropertyShape
a sh:NodeShape ;
sh:targetObjectsOf js:destination ;
sh:or ([sh:class js:Location]
[sh:nodeKind sh:IRI]) .
[sh:datatype xsd:anyURI]
[sh:nodeKind sh:IRI]) .

### Shape for Property arrivalDate ###
################################
js-shacl:arrivalDatePropertyShape
a sh:NodeShape ;
sh:targetObjectsOf js:arrivalDate;
sh:or ( [sh:datatype xsd:dateTime ]
[sh:datatype xsd:date ]
[sh:datatype xsd:time ]) .
[sh:datatype xsd:date ]
[sh:datatype xsd:time ]) .

### Shape for Property departureDate ###
################################
js-shacl:departureDatePropertyShape
a sh:NodeShape ;
sh:targetObjectsOf js:departureDate;
sh:or ( [sh:datatype xsd:dateTime ]
[sh:datatype xsd:date ]
[sh:datatype xsd:time ]) .
[sh:datatype xsd:date ]
[sh:datatype xsd:time ]) .

### Shape for Property startDate ###
################################
js-shacl:startDatePropertyShape
a sh:NodeShape ;
sh:targetObjectsOf js:startDate ;
sh:or ( [sh:datatype xsd:dateTime ]
[sh:datatype xsd:date ]
[sh:datatype xsd:time ]) .
[sh:datatype xsd:date ]
[sh:datatype xsd:time ]) .

### Shape for Property endDate ###
################################
js-shacl:endDatePropertyShape
a sh:NodeShape ;
sh:targetObjectsOf js:endDate ;
sh:or ( [sh:datatype xsd:dateTime ]
[sh:datatype xsd:date ]
[sh:datatype xsd:time ]) .
[sh:datatype xsd:date ]
[sh:datatype xsd:time ]) .

### meanOfTransportation ###
js-shacl:meanOfTransportationShape
a sh:NodeShape ;
sh:targetObjectsOf js:meanOfTransportation ;
sh:or ( [sh:datatype xsd:anyURI ]
[sh:nodeKind sh:IRI ]
[sh:datatype xsd:string ]) .
[sh:nodeKind sh:IRI ]
[sh:datatype xsd:string ]) .

### hasIntermediateDestination###
js-shacl:hasIntermediateDestinationPropertyShape
a sh:NodeShape ;
sh:targetObjectsOf js:hasIntermediateDestination ;
sh:or ([sh:class js:Location]
[sh:nodeKind sh:IRI]
[sh:datatype xsd:anyURI]) .
[sh:nodeKind sh:IRI]
[sh:datatype xsd:anyURI]) .

### hasParticipant ###
js-shacl:hasParticipantPropertyShape
a sh:NodeShape ;
sh:targetObjectsOf js:hasParticipant ;
sh:or ([sh:class js:Person]
[sh:nodeKind sh:IRI]
[sh:datatype xsd:anyURI]) .
[sh:nodeKind sh:IRI]
[sh:datatype xsd:anyURI]) .

### hasStage ###
js-shacl:hasStagePropertyShape
Expand All @@ -437,13 +436,20 @@ js-shacl:hasOccurrencePropertyShape
sh:targetObjectsOf js:hasOccurrence;
sh:class js:Occurence .

### has transit ###
js-shacl:hasTransitPropertyShape
### transit through###
js-shacl:TransitPropertyShape
a sh:NodeShape;
sh:targetObjectsOf js:hasTransitFrom;
sh:targetObjectsOf js:transitThrough;
sh:or ([sh:node js-shacl:LocationShape ]
[sh:nodeKind sh:IRI]
[sh:datatype xsd:anyURI]).
[sh:nodeKind sh:IRI]
[sh:datatype xsd:anyURI]).

### value ###
js-shacl:valuePropertyShape
a sh:NodeShape;
sh:targetObjectsOf js:value;
sh:datatype xsd:decimal .


### hasCost ###
js-shacl:hasCostPropertyShape
Expand All @@ -458,11 +464,19 @@ js-shacl:hasCurrencyPropertyShape
sh:targetObjectsOf js:hasCurrency;
sh:or ( [sh:datatype xsd:string ]
[sh:datatype xsd:anyURI]
[sh:nodeKind sh:IRI ]) .
[sh:nodeKind sh:IRI ]
[sh:class js:Currency ]) .

### wikilink ###
js-shacl:hasWikiLinkPropertyShape
a sh:NodeShape;
sh:targetObjectsOf js:hasWikiLink;
sh:or ([sh:nodeKind sh:IRI]
[sh:datatype xsd:anyURI]).
[sh:datatype xsd:anyURI]).

### value ###
js-shacl:valuePropertyShape
a sh:NodeShape;
sh:targetObjectsOf js:value;
sh:or ( [sh:datatype xsd:float ]
[sh:datatype xsd:integer ]).

0 comments on commit f7be383

Please sign in to comment.