Skip to content

Commit

Permalink
feat: put foaf:agent and vcard:kind in seperate files
Browse files Browse the repository at this point in the history
put foaf:agent and vcard:kind in seperate files
  • Loading branch information
xiaofengleo committed Nov 19, 2024
1 parent 0a19f0e commit da47026
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 62 deletions.
38 changes: 38 additions & 0 deletions Formalisation(shacl)/Core/PiecesShape/Agent.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@prefix dash: <http://datashapes.org/dash#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://data.health-ri.nl/core/p2/DatasetShape> a owl:Ontology;
dct:description "This Excel file shows how to edit simple SHACL shapes in an Excel file"@en;
dct:modified "2024-02-22T00:00:00.000Z"^^xsd:dateTime;
rdfs:comment "An example SHACL file in Excel"@en;
rdfs:label "SHACL example"@en;
owl:versionInfo "0.1" .


<http://data.health-ri.nl/core/p2/AgentShapeAgentShape> a sh:NodeShape;
rdfs:label "Agent"@en;
sh:property <http://data.health-ri.nl/core/p2/AgentShapeAgentShape#foaf:name>, <http://data.health-ri.nl/core/p2/AgentShapeAgentShape#dct:identifier>;
sh:targetClass foaf:Agent .


<http://data.health-ri.nl/core/p2/AgentShapeAgentShape#foaf:name>
dash:editor dash:TextFieldEditor ;
dash:viewer dash:LiteralViewer ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:nodeKind sh:Literal ;
sh:path foaf:name .

<http://data.health-ri.nl/core/p2/AgentShapeAgentShape#dct:identifier>
sh:path dct:identifier ;
sh:nodeKind sh:Literal ;
dash:editor dash:TextFieldEditor ;
dash:viewer dash:LiteralViewer ;
sh:minCount 1 ;
sh:maxCount 1 .

62 changes: 0 additions & 62 deletions Formalisation(shacl)/Core/PiecesShape/Dataset.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -389,65 +389,3 @@
<http://data.health-ri.nl/core/p2/DatasetShapeDatasetShape#was-used-by> sh:name "was used by"@en;
sh:nodeKind sh:IRI;
sh:path prov:wasUsedBy .


<http://data.health-ri.nl/core/p2/AgentShapeAgentShape> a sh:NodeShape;
rdfs:label "Agent"@en;
sh:property <http://data.health-ri.nl/core/p2/AgentShapeAgentShape#foaf:name>, <http://data.health-ri.nl/core/p2/AgentShapeAgentShape#dct:identifier>;
sh:targetClass foaf:Agent .


<http://data.health-ri.nl/core/p2/AgentShapeAgentShape#foaf:name>
dash:editor dash:TextFieldEditor ;
dash:viewer dash:LiteralViewer ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:nodeKind sh:Literal ;
sh:path foaf:name .

<http://data.health-ri.nl/core/p2/AgentShapeAgentShape#dct:identifier>
sh:path dct:identifier ;
sh:nodeKind sh:Literal ;
dash:editor dash:TextFieldEditor ;
dash:viewer dash:LiteralViewer ;
sh:minCount 1 ;
sh:maxCount 1 .






<http://data.health-ri.nl/core/p2/KindShapeKindShape> a sh:NodeShape;
rdfs:label "Kind"@en;
sh:property <http://data.health-ri.nl/core/p2/KindShapeKindShape#vcard:hasEmail>,
<http://data.health-ri.nl/core/p2/KindShapeKindShape#vcard:fn>,
<http://data.health-ri.nl/core/p2/KindShapeKindShape#vcard:hasURL>;
sh:targetClass vcard:Kind .


<http://data.health-ri.nl/core/p2/KindShapeKindShape#vcard:hasEmail>
sh:path vcard:hasEmail ;
sh:nodeKind sh:IRI ;
sh:pattern "^mailto:.+@.+\\..+$" ;
dash:viewer dash:URIViewer ;
dash:editor dash:URIEditor ;
sh:minCount 1 ;
sh:maxCount 1 .


<http://data.health-ri.nl/core/p2/KindShapeKindShape#vcard:fn>
sh:path vcard:fn ;
sh:nodeKind sh:Literal ;
sh:datatype xsd:string ;
dash:editor dash:TextFieldEditor ;
dash:viewer dash:LiteralViewer ;
sh:minCount 1 ;
sh:maxCount 1 .


<http://data.health-ri.nl/core/p2/KindShapeKindShape#vcard:hasURL>
sh:path vcard:hasURL ;
sh:nodeKind sh:IRI ;
dash:viewer dash:URIViewer ;
dash:editor dash:URIEditor .
41 changes: 41 additions & 0 deletions Formalisation(shacl)/Core/PiecesShape/Kind.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
@prefix dash: <http://datashapes.org/dash#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


<http://data.health-ri.nl/core/p2/KindShapeKindShape> a sh:NodeShape;
rdfs:label "Kind"@en;
sh:property <http://data.health-ri.nl/core/p2/KindShapeKindShape#vcard:hasEmail>,
<http://data.health-ri.nl/core/p2/KindShapeKindShape#vcard:fn>,
<http://data.health-ri.nl/core/p2/KindShapeKindShape#vcard:hasURL>;
sh:targetClass vcard:Kind .


<http://data.health-ri.nl/core/p2/KindShapeKindShape#vcard:hasEmail>
sh:path vcard:hasEmail ;
sh:nodeKind sh:IRI ;
sh:pattern "^mailto:.+@.+\\..+$" ;
dash:viewer dash:URIViewer ;
dash:editor dash:URIEditor ;
sh:minCount 1 ;
sh:maxCount 1 .


<http://data.health-ri.nl/core/p2/KindShapeKindShape#vcard:fn>
sh:path vcard:fn ;
sh:nodeKind sh:Literal ;
sh:datatype xsd:string ;
dash:editor dash:TextFieldEditor ;
dash:viewer dash:LiteralViewer ;
sh:minCount 1 ;
sh:maxCount 1 .


<http://data.health-ri.nl/core/p2/KindShapeKindShape#vcard:hasURL>
sh:path vcard:hasURL ;
sh:nodeKind sh:IRI ;
dash:viewer dash:URIViewer ;
dash:editor dash:URIEditor .

0 comments on commit da47026

Please sign in to comment.