From ba2a5b237aadb0b64e3627998a5768c95f92271b Mon Sep 17 00:00:00 2001
From: Marcel Nellesen <nellesen@itc.rwth-aachen.de>
Date: Thu, 28 Nov 2019 13:47:14 +0100
Subject: [PATCH] New: Included the new Application profiles
 (coscine/issues#521)

---
 profiles/cwd/index.ttl          | 115 +++++++++++++++++
 profiles/ltt/index.ttl          | 221 ++++++++++++++++++++++++++++++++
 profiles/radar/index.ttl        |  36 ++----
 terms/boolean/index.ttl         |  19 +++
 terms/publishmetadata/index.ttl |  23 ----
 terms/visibility/index.ttl      |  24 ++++
 6 files changed, 392 insertions(+), 46 deletions(-)
 create mode 100644 profiles/cwd/index.ttl
 create mode 100644 profiles/ltt/index.ttl
 create mode 100644 terms/boolean/index.ttl
 delete mode 100644 terms/publishmetadata/index.ttl
 create mode 100644 terms/visibility/index.ttl

diff --git a/profiles/cwd/index.ttl b/profiles/cwd/index.ttl
new file mode 100644
index 00000000..e959017e
--- /dev/null
+++ b/profiles/cwd/index.ttl
@@ -0,0 +1,115 @@
+@base <https://purl.org/coscine/ap/cwd/> .
+
+@prefix dash: <http://datashapes.org/dash#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@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#> .
+
+@prefix terms: <http://purl.org/dc/terms/> .
+@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
+@prefix dc: <http://purl.org/dc/elements/1.1/> .
+@prefix coscine: <https://purl.org/coscine/terms/> .
+@prefix dctype: <http://purl.org/dc/dcmitype/> .
+@prefix csmd: <http://www.purl.org/net/CSMD/4.0#> .
+@prefix rwthform: <https://purl.org/rwth/md/form/1.0/> .
+
+@prefix coscinecwd: <https://purl.org/coscine/ap/cwd/> .
+
+coscinecwd:
+  a sh:NodeShape ;
+  sh:targetClass coscinecwd:;
+  sh:closed true ; #no additional properties are allowed
+
+  sh:property [
+    sh:path rdf:type ;
+    sh:node rdf:type ;
+  ] ;
+
+  sh:property coscinecwd:visibility ;
+  sh:property coscinecwd:title ;
+  sh:property coscinecwd:investigation_startDate ;  
+  sh:property coscinecwd:creator ;
+  sh:property coscinecwd:institute_unit ;
+  sh:property coscinecwd:project ;
+  sh:property coscinecwd:facility_name ;
+  sh:property coscinecwd:SampleType_name ;
+  sh:property coscinecwd:investigationtype_name .
+
+coscinecwd:visibility
+  sh:path coscine:visibility ;
+  sh:node coscine:visibility ;
+  sh:order 0 ;
+  sh:minCount 1 ;
+  sh:maxCount 1 ;
+  sh:class coscine:visibility ;
+  sh:name "Visibility"@en, "Sichtbarkeit"@de .
+  
+coscinecwd:title
+  sh:path dc:title ;
+  sh:node dc:title ;
+  sh:order 1 ;
+  sh:minCount 1 ;
+  sh:maxCount 1 ;
+  sh:minLength 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Title of the experiment"@en, "Versuchstitel"@de .
+  
+coscinecwd:investigation_startDate
+  sh:path csmd:investigation_startDate ;
+  sh:node csmd:investigation_startDate ;
+  sh:order 2 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:date ;
+  sh:defaultValue "{TODAY}" ;
+  sh:name "Date"@en, "Datum"@de .
+
+coscinecwd:creator
+  sh:path dc:creator ;
+  sh:node dc:creator ;
+  sh:order 3 ;
+  sh:minCount 1 ;
+  sh:minLength 1 ;
+  sh:datatype xsd:string ;
+  sh:defaultValue "{ME}" ;
+  sh:name "Person"@en, "Person"@de .
+
+coscinecwd:institute_unit
+  sh:path rwthform:institute_unit ;
+  sh:node rwthform:institute_unit ;
+  sh:order 4 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Institute"@en, "Institutsbereich"@de .
+  
+coscinecwd:project
+  sh:path rwthform:project ;
+  sh:node rwthform:project ;
+  sh:order 5 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Project"@en, "Projekt"@de .
+  
+coscinecwd:facility_name
+  sh:path csmd:facility_name ;
+  sh:node csmd:facility_name ;
+  sh:order 6 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Test bench name"@en, "Prüfstandsname"@de .
+  
+coscinecwd:SampleType_name
+  sh:path csmd:SampleType_name ;
+  sh:node csmd:SampleType_name ;
+  sh:order 7 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Category of test piece"@en, "Kategorie Prüfling"@de .
+  
+coscinecwd:investigationtype_name
+  sh:path csmd:investigationtype_name ;
+  sh:node csmd:investigationtype_name ;
+  sh:order 8 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Category of experiment"@en, "Kategorie Versuch"@de .
diff --git a/profiles/ltt/index.ttl b/profiles/ltt/index.ttl
new file mode 100644
index 00000000..dbd87536
--- /dev/null
+++ b/profiles/ltt/index.ttl
@@ -0,0 +1,221 @@
+@base <https://purl.org/coscine/ap/ltt/> .
+
+@prefix dash: <http://datashapes.org/dash#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@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#> .
+
+@prefix terms: <http://purl.org/dc/terms/> .
+@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
+@prefix dc: <http://purl.org/dc/elements/1.1/> .
+@prefix coscine: <https://purl.org/coscine/terms/> .
+@prefix dctype: <http://purl.org/dc/dcmitype/> .
+@prefix rwth412110: <https://purl.org/rwth/md/412110/1.0/> .
+@prefix rwthform: <https://purl.org/rwth/md/form/1.0/> .
+
+@prefix coscineltt: <https://purl.org/coscine/ap/ltt/> .
+
+coscineltt:
+  a sh:NodeShape ;
+  sh:targetClass coscineltt:;
+  sh:closed true ; #no additional properties are allowed
+
+  sh:property [
+    sh:path rdf:type ;
+    sh:node rdf:type ;
+  ] ;
+
+  sh:property coscineltt:title ;
+  sh:property coscineltt:idInternal ;
+  sh:property coscineltt:idExternal ;
+  sh:property coscineltt:start ;  
+  sh:property coscineltt:end ;
+  sh:property coscineltt:creator ;
+  sh:property coscineltt:contributor ;
+  sh:property coscineltt:workgroup ;
+  sh:property coscineltt:subWorkgroup ;
+  sh:property coscineltt:parentProjectId ;
+  sh:property coscineltt:siblingProjectId ;
+  sh:property coscineltt:visibility ;
+  sh:property coscineltt:description ;
+  sh:property coscineltt:abstract ;
+  sh:property coscineltt:projectPartner ;
+  sh:property coscineltt:hasDmp ;
+  sh:property coscineltt:dmpLocation ;
+  sh:property coscineltt:dateArchived ;
+  sh:property coscineltt:archiveExpire ;
+  sh:property coscineltt:archivedBy .
+
+coscineltt:title
+  sh:path dc:title ;
+  sh:node dc:title ;
+  sh:order 0 ;
+  sh:minCount 1 ;
+  sh:maxCount 1 ;
+  sh:minLength 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Title of the research project"@en, "Titel des Forschungsvorhabens"@de .
+  
+coscineltt:idInternal
+  sh:path rwth412110:idInternal ;
+  sh:node rwth412110:idInternal ;
+  sh:order 1 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Identification Number – intern – "@en, "Identifikationsnummer – intern – "@de .  
+  
+coscineltt:idExternal
+  sh:path rwth412110:idExternal ;
+  sh:node rwth412110:idExternal ;
+  sh:order 2 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Identification Number – extern – "@en, "Identifikationsnummer – extern – "@de .  
+  
+coscineltt:start
+  sh:path rwth412110:start ;
+  sh:node rwth412110:start ;
+  sh:order 3 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:date ;
+  sh:name "Start of the term"@en, "Beginn der Laufzeit"@de .
+
+coscineltt:end
+  sh:path rwth412110:end ;
+  sh:node rwth412110:end ;
+  sh:order 4 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:date ;
+  sh:name "End of the term"@en, "Ende der Laufzeit"@de .  
+  
+coscineltt:creator
+  sh:path dc:creator ;
+  sh:node dc:creator ;
+  sh:order 5 ;
+  sh:minCount 1 ;
+  sh:maxCount 1 ;
+  sh:minLength 1 ;
+  sh:datatype xsd:string ;
+  sh:defaultValue "{ME}" ;
+  sh:name "Main responsible person for the research project"@en, "Hauptverantwortliche(r) für das Forschungsvorhaben"@de .
+  
+coscineltt:contributor
+  sh:path dc:contributor ;
+  sh:node dc:contributor ;
+  sh:order 6 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  sh:defaultValue "{ME}" ;
+  sh:name "Editor of the project"@en, "Bearbeiter des Projektes"@de .
+  
+coscineltt:workgroup
+  sh:path rwth412110:workgroup ;
+  sh:node rwth412110:workgroup ;
+  sh:order 7 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Team"@en, "Arbeitsgruppe"@de .  
+
+coscineltt:subWorkgroup
+  sh:path rwth412110:subWorkgroup ;
+  sh:node rwth412110:subWorkgroup ;
+  sh:order 8 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  dash:singleLine false ;
+  sh:name "Sub-working group(s)"@en, "Unterarbeitsgruppe(n)"@de .  # multiline field
+
+coscineltt:parentProjectId
+  sh:path rwth412110:parentProjectId ;
+  sh:node rwth412110:parentProjectId ;
+  sh:order 9 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Identification number previous project"@en, "Identifikationsnummer Vorgängerprojekt"@de .  
+
+coscineltt:siblingProjectId
+  sh:path rwth412110:siblingProjectId ;
+  sh:node rwth412110:siblingProjectId ;
+  sh:order 10 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Identification number sister project"@en, "Identifikationsnummer Schwesterprojekt"@de .  
+
+coscineltt:visibility
+  sh:path coscine:visibility ;
+  sh:node coscine:visibility ;
+  sh:order 11 ;
+  sh:minCount 1 ;
+  sh:maxCount 1 ;
+  sh:class coscine:visibility ;
+  sh:name "Confidentiality / access right"@en, "Vertraulichkeit / Zugriffsrecht"@de .
+
+coscineltt:description
+  sh:path dc:description ;
+  sh:node dc:description ;
+  sh:order 12 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  dash:singleLine false ;
+  sh:name "Description of the research project"@en, "Beschreibung des Forschungsvorhabens"@de .    
+  
+coscineltt:abstract
+  sh:path dc:abstract ;
+  sh:node dc:abstract ;
+  sh:order 13 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  dash:singleLine false ;
+  sh:name "Description of the work package or individual project"@en, "Beschreibung des Arbeitspaketes bzw. Einzelvorhabens"@de .
+  
+coscineltt:projectPartner
+  sh:path rwthform:projectPartner ;
+  sh:node rwthform:projectPartner ;
+  sh:order 14 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  dash:singleLine false ;
+  sh:name "Project partners"@en, "Projektpartner"@de .    
+  
+coscineltt:hasDmp
+  sh:path rwthform:hasDmp ;
+  sh:node rwthform:hasDmp ;
+  sh:order 15 ;
+  sh:maxCount 1 ;
+  sh:class coscine:boolean ;
+  sh:name "Data management plan created?"@en, "Datenmanagementplan erstellt?"@de .
+  
+coscineltt:dmpLocation
+  sh:path rwthform:dmpLocation ;
+  sh:node rwthform:dmpLocation ;
+  sh:order 16 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Data management plan location"@en, "Datenmanagementplan Speicherort"@de .
+  
+coscineltt:dateArchived
+  sh:path rwth412110:dateArchived ;
+  sh:node rwth412110:dateArchived ;
+  sh:order 17 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:date ;
+  sh:defaultValue "{TODAY}" ;
+  sh:name "Date of archiving"@en, "Datum der Archivierung"@de .
+  
+coscineltt:archiveExpire
+  sh:path rwth412110:archiveExpire ;
+  sh:node rwth412110:archiveExpire ;
+  sh:order 18 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:date ;
+  sh:defaultValue "{TODAY}" ;
+  sh:name "Date closing of the node"@en, "Datum Schließung des Knotens"@de .
+  
+coscineltt:archivedBy
+  sh:path rwthform:archivedBy ;
+  sh:node rwthform:archivedBy ;
+  sh:order 19 ;
+  sh:maxCount 1 ;
+  sh:datatype xsd:string ;
+  sh:name "Name of the archivist"@en, "Name des Archivars"@de .
diff --git a/profiles/radar/index.ttl b/profiles/radar/index.ttl
index 5a04d033..75f1f187 100644
--- a/profiles/radar/index.ttl
+++ b/profiles/radar/index.ttl
@@ -9,7 +9,7 @@
 @prefix terms: <http://purl.org/dc/terms/> .
 @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
 @prefix dc: <http://purl.org/dc/elements/1.1/> .
-@prefix coscinepublishmetadata: <https://purl.org/coscine/terms/publishMetadata/> .
+@prefix coscine: <https://purl.org/coscine/terms/> .
 @prefix dctype: <http://purl.org/dc/dcmitype/> .
 
 @prefix coscineradar: <https://purl.org/coscine/ap/radar/> .
@@ -24,8 +24,7 @@ coscineradar:
     sh:node rdf:type ;
   ] ;
 
-  sh:property coscineradar:publishMetadata ;
-  sh:property coscineradar:hasIKZ ;
+  sh:property coscineradar:visibility ;
   sh:property coscineradar:creator ;
   sh:property coscineradar:title ;
   sh:property coscineradar:created ;  
@@ -34,28 +33,19 @@ coscineradar:
   sh:property coscineradar:rights ;
   sh:property coscineradar:rightsHolder .
 
-coscineradar:publishMetadata
-  sh:path coscinepublishmetadata: ;
-  sh:node coscinepublishmetadata: ;
+coscineradar:visibility
+  sh:path coscine:visibility ;
+  sh:node coscine:visibility ;
   sh:order 0 ;
   sh:minCount 1 ;
   sh:maxCount 1 ;
-  sh:class coscinepublishmetadata: ;
+  sh:class coscine:visibility ;
   sh:name "Visibility"@en, "Sichtbarkeit"@de .
 
-coscineradar:hasIKZ
-  sh:path coscinepublishmetadata:hasIKZ ;
-  sh:node coscinepublishmetadata:hasIKZ ;
-  sh:order 1 ;
-  sh:minCount 1 ;
-  sh:minLength 1 ;
-  sh:datatype xsd:string ;
-  sh:name "IKZ"@en, "IKZ"@de .
-
 coscineradar:creator
   sh:path dc:creator ;
   sh:node dc:creator ;
-  sh:order 2 ;
+  sh:order 1 ;
   sh:minCount 1 ;
   sh:maxCount 1 ;
   sh:minLength 1 ;
@@ -66,7 +56,7 @@ coscineradar:creator
 coscineradar:title
   sh:path dc:title ;
   sh:node dc:title ;
-  sh:order 3 ;
+  sh:order 2 ;
   sh:minCount 1 ;
   sh:maxCount 1 ;
   sh:minLength 1 ;
@@ -76,7 +66,7 @@ coscineradar:title
 coscineradar:created
   sh:path dc:created ;
   sh:node dc:created ;
-  sh:order 4 ;
+  sh:order 3 ;
   sh:minCount 1 ;
   sh:maxCount 1 ;
   sh:datatype xsd:date ;
@@ -86,7 +76,7 @@ coscineradar:created
 coscineradar:subject
   sh:path dc:subject ;
   sh:node dc:subject ;
-  sh:order 5 ;
+  sh:order 4 ;
   sh:maxCount 1 ;
   sh:name "Subject Area"@en, "Fachrichtung"@de ;
   sh:class <http://www.dfg.de/dfg_profil/gremien/fachkollegien/faecher/> .
@@ -94,7 +84,7 @@ coscineradar:subject
 coscineradar:type
   sh:path dc:type ;
   sh:node dc:type ;
-  sh:order 6 ;
+  sh:order 5 ;
   sh:maxCount 1 ;
   sh:name "Resource"@en, "Ressource"@de ;
   sh:class <http://purl.org/dc/dcmitype/> .
@@ -102,7 +92,7 @@ coscineradar:type
 coscineradar:rights
   sh:path dc:rights ;
   sh:node dc:rights ;
-  sh:order 7 ;
+  sh:order 6 ;
   sh:maxCount 1 ;
   sh:datatype xsd:string ;
   sh:name "Rights"@en, "Berechtigung"@de .
@@ -110,7 +100,7 @@ coscineradar:rights
 coscineradar:rightsHolder
   sh:path dc:rightsHolder ;
   sh:node dc:rightsHolder ;
-  sh:order 8 ;
+  sh:order 7 ;
   sh:maxCount 1 ;
   sh:datatype xsd:string ;
   sh:name "Rightsholder"@en, "Rechteinhaber"@de .
\ No newline at end of file
diff --git a/terms/boolean/index.ttl b/terms/boolean/index.ttl
new file mode 100644
index 00000000..6c9634ec
--- /dev/null
+++ b/terms/boolean/index.ttl
@@ -0,0 +1,19 @@
+@base  <https://purl.org/coscine/terms/boolean> .
+
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix coscineterms: <https://purl.org/coscine/terms/> .
+@prefix coscineboolean: <https://purl.org/coscine/terms/boolean#> .
+
+coscineterms:boolean
+  rdf:type coscineterms:boolean .
+
+coscineboolean:true
+  rdfs:label "Yes"@en ;
+  rdfs:label "Ja"@de ;
+  a coscineterms:boolean .
+  
+coscineboolean:false
+  rdfs:label "No"@en ;
+  rdfs:label "Nein"@de ;
+  a coscineterms:boolean .
\ No newline at end of file
diff --git a/terms/publishmetadata/index.ttl b/terms/publishmetadata/index.ttl
deleted file mode 100644
index ce2bec97..00000000
--- a/terms/publishmetadata/index.ttl
+++ /dev/null
@@ -1,23 +0,0 @@
-@base  <https://purl.org/coscine/terms/publishMetadata/> .
-
-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-@prefix coscineterms: <https://purl.org/coscine/terms/> .
-
-coscineterms:publishMetadata
-  rdf:type coscineterms:publishMetadata .
-
-coscineterms:metadataIsPrivate
-  rdfs:label "Private"@en ;
-  rdfs:label "Privat"@de ;
-  a coscineterms:publishMetadata .
-  
-coscineterms:metadataIsProtected
-  rdfs:label "Institute"@en ;
-  rdfs:label "Institut"@de ;
-  a coscineterms:publishMetadata .
-  
-coscineterms:metadataIsPublic
-  rdfs:label "Public"@en ;
-  rdfs:label "Öffentlich"@de ;
-  a coscineterms:publishMetadata .
\ No newline at end of file
diff --git a/terms/visibility/index.ttl b/terms/visibility/index.ttl
new file mode 100644
index 00000000..e1370225
--- /dev/null
+++ b/terms/visibility/index.ttl
@@ -0,0 +1,24 @@
+@base  <https://purl.org/coscine/terms/visibility> .
+
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix coscineterms: <https://purl.org/coscine/terms/> .
+@prefix coscinevisibility: <https://purl.org/coscine/terms/visibility#> .
+
+coscineterms:visibility
+  rdf:type coscineterms:visibility .
+
+coscinevisibility:metadataIsPrivate
+  rdfs:label "Private"@en ;
+  rdfs:label "Privat"@de ;
+  a coscineterms:visibility .
+  
+coscinevisibility:metadataIsProtected
+  rdfs:label "Institute"@en ;
+  rdfs:label "Institut"@de ;
+  a coscineterms:visibility .
+  
+coscinevisibility:metadataIsPublic
+  rdfs:label "Public"@en ;
+  rdfs:label "Öffentlich"@de ;
+  a coscineterms:visibility .
\ No newline at end of file
-- 
GitLab