Difference between revisions of "Data:Device"

From DAAP
Jump to navigation Jump to search
Line 27: Line 27:
 
</rdf>
 
</rdf>
  
<pre constraint="shacl">
+
<rdf constraint="shacl">
 
daap:Device  
 
daap:Device  
 
   a sh:Shape ;
 
   a sh:Shape ;
Line 42: Line 42:
 
       sh:minCount 1 ;
 
       sh:minCount 1 ;
 
       sh:nodeKind sh:IRI ;
 
       sh:nodeKind sh:IRI ;
       sh:predicate daapProp:pilotProcess ;
+
       sh:path daapProp:pilotProcess ;
 
       sh:valueClass daap:Individual ;
 
       sh:valueClass daap:Individual ;
 
     ];  
 
     ];  
Line 49: Line 49:
 
       sh:minCount 1 ;
 
       sh:minCount 1 ;
 
       sh:nodeKind sh:IRI ;
 
       sh:nodeKind sh:IRI ;
       sh:predicate daapProp:checkBy ;
+
       sh:path daapProp:checkBy ;
 
       sh:valueClass daap:Individual ;
 
       sh:valueClass daap:Individual ;
 
     ] ;
 
     ] ;
Line 55: Line 55:
 
       rdfs:label "Wikidata item"^^xsd:string ;
 
       rdfs:label "Wikidata item"^^xsd:string ;
 
       sh:nodeKind sh:IRI ;
 
       sh:nodeKind sh:IRI ;
       sh:predicate daapProp:item ;
+
       sh:path daapProp:item ;
 
       sh:valueClass <http://wikiba.se/ontology#Item> ;
 
       sh:valueClass <http://wikiba.se/ontology#Item> ;
 
     ] ;
 
     ] ;
Line 61: Line 61:
 
       rdfs:label "latitude"^^xsd:string ;
 
       rdfs:label "latitude"^^xsd:string ;
 
       sh:datatype xsd:float ;
 
       sh:datatype xsd:float ;
      sh:maxCount 1 ;
+
#      sh:maxCount 1 ;
 
       sh:minCount 1 ;
 
       sh:minCount 1 ;
       sh:predicate geo:lat ;
+
       sh:path geo:lat ;
 
     ] ;
 
     ] ;
 
   sh:property [
 
   sh:property [
 
       rdfs:label "longitude"^^xsd:string ;
 
       rdfs:label "longitude"^^xsd:string ;
 
       sh:datatype xsd:float ;
 
       sh:datatype xsd:float ;
      sh:maxCount 1 ;
+
#      sh:maxCount 1 ;
 
       sh:minCount 1 ;
 
       sh:minCount 1 ;
       sh:predicate geo:long ;
+
       sh:path geo:long ;
 
     ] ;
 
     ] ;
 
   sh:property [
 
   sh:property [
 
       rdfs:label "organization-unit"^^xsd:string ;
 
       rdfs:label "organization-unit"^^xsd:string ;
      sh:maxCount 1 ;
+
#      sh:maxCount 1 ;
 
       sh:minCount 1 ;
 
       sh:minCount 1 ;
 
       sh:nodeKind sh:IRI ;
 
       sh:nodeKind sh:IRI ;
       sh:predicate vcard:organization-unit ;
+
       sh:path vcard:organization-unit ;
 
       sh:valueClass vcard:Organization ;
 
       sh:valueClass vcard:Organization ;
 
     ] ;
 
     ] ;
 
   sh:property [
 
   sh:property [
 
       rdfs:label "picture"^^xsd:string ;
 
       rdfs:label "picture"^^xsd:string ;
      sh:maxCount 1 ;
+
#      sh:maxCount 1 ;
 
       sh:minCount 1 ;
 
       sh:minCount 1 ;
 
       sh:nodeKind sh:IRI ;
 
       sh:nodeKind sh:IRI ;
       sh:predicate <http://daap.dsi.universite-paris-saclay.fr/wiki/Property:picture> ;
+
       sh:path <http://daap.dsi.universite-paris-saclay.fr/wiki/Property:picture> ;
      sh:valueClass rdfs:Resource ;
 
 
     ]  
 
     ]  
 
.
 
.
</pre>
+
</rdf>

Revision as of 16:11, 14 November 2021

Prefix

PREFIX daapSch: <http://daap.dsi.universite-paris-saclay.fr/wiki/Schema:>
PREFIX daapProp: <http://daap.dsi.universite-paris-saclay.fr/wiki/Property:> 
PREFIX daap: <http://daap.dsi.universite-paris-saclay.fr/wiki/>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#> 
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> 
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>

Definition

The class Device contains 7 properties.

daap:Device
  a owl:Class ;
  rdfs:label "Device"@en ;
  rdfs:label "Instrument"@fr ;
  rdfs:subClassOf owl:Thing.
daap:Device 
  a sh:Shape ;
  sh:targetClass daap:Device ;    # Applies to all devices
   sh:property [
	sh:path rdfs:label ;
	sh:datatype xsd:string ;
	sh:minCount 2 ; #fr and en
	sh:uniqueLang true ;
   ] ;
  sh:property [
      rdfs:label "Pilot process"@en ;
      rdfs:label "Responsable de l'appareil"@fr ;
      sh:minCount 1 ;
      sh:nodeKind sh:IRI ;
      sh:path daapProp:pilotProcess ;
      sh:valueClass daap:Individual ;
    ]; 
   sh:property [
      rdfs:label "check by"^^xsd:string ;
      sh:minCount 1 ;
      sh:nodeKind sh:IRI ;
      sh:path daapProp:checkBy ;
      sh:valueClass daap:Individual ;
    ] ;
  sh:property [
      rdfs:label "Wikidata item"^^xsd:string ;
      sh:nodeKind sh:IRI ;
      sh:path daapProp:item ;
      sh:valueClass <http://wikiba.se/ontology#Item> ;
    ] ;
  sh:property [
      rdfs:label "latitude"^^xsd:string ;
      sh:datatype xsd:float ;
#      sh:maxCount 1 ;
      sh:minCount 1 ;
      sh:path geo:lat ;
    ] ;
  sh:property [
      rdfs:label "longitude"^^xsd:string ;
      sh:datatype xsd:float ;
#      sh:maxCount 1 ;
      sh:minCount 1 ;
      sh:path geo:long ;
    ] ;
  sh:property [
      rdfs:label "organization-unit"^^xsd:string ;
#      sh:maxCount 1 ;
      sh:minCount 1 ;
      sh:nodeKind sh:IRI ;
      sh:path vcard:organization-unit ;
      sh:valueClass vcard:Organization ;
    ] ;
  sh:property [
      rdfs:label "picture"^^xsd:string ;
#      sh:maxCount 1 ;
      sh:minCount 1 ;
      sh:nodeKind sh:IRI ;
      sh:path <http://daap.dsi.universite-paris-saclay.fr/wiki/Property:picture> ;
    ] 
.