From da47026c3b53fc6cf2d44cc9e69ff69b9f872f71 Mon Sep 17 00:00:00 2001 From: Xiaofeng Liao Date: Tue, 19 Nov 2024 13:50:00 +0100 Subject: [PATCH] feat: put foaf:agent and vcard:kind in seperate files put foaf:agent and vcard:kind in seperate files --- .../Core/PiecesShape/Agent.ttl | 38 ++++++++++++ .../Core/PiecesShape/Dataset.ttl | 62 ------------------- .../Core/PiecesShape/Kind.ttl | 41 ++++++++++++ 3 files changed, 79 insertions(+), 62 deletions(-) create mode 100644 Formalisation(shacl)/Core/PiecesShape/Agent.ttl create mode 100644 Formalisation(shacl)/Core/PiecesShape/Kind.ttl diff --git a/Formalisation(shacl)/Core/PiecesShape/Agent.ttl b/Formalisation(shacl)/Core/PiecesShape/Agent.ttl new file mode 100644 index 0000000..6a2704b --- /dev/null +++ b/Formalisation(shacl)/Core/PiecesShape/Agent.ttl @@ -0,0 +1,38 @@ +@prefix dash: . +@prefix dct: . +@prefix foaf: . +@prefix owl: . +@prefix rdfs: . +@prefix sh: . +@prefix xsd: . + + 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" . + + + a sh:NodeShape; + rdfs:label "Agent"@en; + sh:property , ; + sh:targetClass foaf:Agent . + + + + dash:editor dash:TextFieldEditor ; + dash:viewer dash:LiteralViewer ; + sh:minCount 1 ; + sh:maxCount 1 ; + sh:nodeKind sh:Literal ; + sh:path foaf:name . + + + sh:path dct:identifier ; + sh:nodeKind sh:Literal ; + dash:editor dash:TextFieldEditor ; + dash:viewer dash:LiteralViewer ; + sh:minCount 1 ; + sh:maxCount 1 . + diff --git a/Formalisation(shacl)/Core/PiecesShape/Dataset.ttl b/Formalisation(shacl)/Core/PiecesShape/Dataset.ttl index 60250e5..c09ecb4 100644 --- a/Formalisation(shacl)/Core/PiecesShape/Dataset.ttl +++ b/Formalisation(shacl)/Core/PiecesShape/Dataset.ttl @@ -389,65 +389,3 @@ sh:name "was used by"@en; sh:nodeKind sh:IRI; sh:path prov:wasUsedBy . - - - a sh:NodeShape; - rdfs:label "Agent"@en; - sh:property , ; - sh:targetClass foaf:Agent . - - - - dash:editor dash:TextFieldEditor ; - dash:viewer dash:LiteralViewer ; - sh:minCount 1 ; - sh:maxCount 1 ; - sh:nodeKind sh:Literal ; - sh:path foaf:name . - - - sh:path dct:identifier ; - sh:nodeKind sh:Literal ; - dash:editor dash:TextFieldEditor ; - dash:viewer dash:LiteralViewer ; - sh:minCount 1 ; - sh:maxCount 1 . - - - - - - - a sh:NodeShape; -rdfs:label "Kind"@en; - sh:property , - , - ; - sh:targetClass vcard:Kind . - - - - 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 . - - - - 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 . - - - - sh:path vcard:hasURL ; - sh:nodeKind sh:IRI ; - dash:viewer dash:URIViewer ; - dash:editor dash:URIEditor . diff --git a/Formalisation(shacl)/Core/PiecesShape/Kind.ttl b/Formalisation(shacl)/Core/PiecesShape/Kind.ttl new file mode 100644 index 0000000..0438176 --- /dev/null +++ b/Formalisation(shacl)/Core/PiecesShape/Kind.ttl @@ -0,0 +1,41 @@ +@prefix dash: . +@prefix foaf: . +@prefix rdfs: . +@prefix sh: . +@prefix vcard: . +@prefix xsd: . + + + a sh:NodeShape; +rdfs:label "Kind"@en; + sh:property , + , + ; + sh:targetClass vcard:Kind . + + + + 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 . + + + + 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 . + + + + sh:path vcard:hasURL ; + sh:nodeKind sh:IRI ; + dash:viewer dash:URIViewer ; + dash:editor dash:URIEditor . \ No newline at end of file