Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
s-tittel committed Jul 28, 2023
1 parent a2f2554 commit aa77eaf
Show file tree
Hide file tree
Showing 6 changed files with 360 additions and 329 deletions.
37 changes: 34 additions & 3 deletions demo/data1.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix schema: <http://schema.org/> .
@prefix fidbau: <http://example.org/fidbau#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix geo: <http://www.opengis.net/ont/geosparql#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://example.com/John-Doe> a <http://schema.org/Person> ;
<http://schema.org/age> 18 ;
<http://schema.org/name> "John", "Johnny" .
<http://example.org/fidbau#4f2a8de3-9fc8-40a9-9237-d5964520ec54>
a dcat:Dataset, fidbau:ArchitectureModelDataset ;
dcterms:title "Einsteinturm" ;
dcterms:description "333";
dcterms:issued "2023-07-27"^^xsd:date;
dcterms:license <http://www.opendefinition.org/licenses/cc-by>;
dcterms:spatial [
a dcterms:Location ;
geo:asWKT "POINT(8.65,49.87)"^^geo:wktLiteral ;
dcterms:description "Building has been realized here" ;
] ;
schema:material "Holz" ;
<http://www.w3.org/ns/prov#qualifiedAttribution> _:0706162f-c5a3-4954-8cf8-a9d324b313f4 ;
<http://purl.org/dc/terms/creator> _:n1150716783622461953 .
_:n1150716783622461953
<http://xmlns.com/foaf/0.1/name> "Stephan Tittel" ;
<http://xmlns.com/foaf/0.1/mbox> "[email protected]" ;
<http://purl.org/dc/terms/identifier> "https://orcid.org/0000-0002-0048-6835" ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Agent> .

_:b6b4cfca-6b02-43c0-a830-b2375dc4653e <http://xmlns.com/foaf/0.1/name> "123";
a <http://xmlns.com/foaf/0.1/Agent>.
_:1c986e20-c685-47c4-83ca-c22068e07762 <http://xmlns.com/foaf/0.1/name> "123";
a <http://xmlns.com/foaf/0.1/Agent>.
_:0706162f-c5a3-4954-8cf8-a9d324b313f4 a <http://www.w3.org/ns/prov#Attribution>;
<http://www.w3.org/ns/prov#agent> _:1c986e20-c685-47c4-83ca-c22068e07762;
<http://www.w3.org/ns/dcat#hadRole> <http://w3id.org/nfdi4ing/metadata4ing#RegistrationAgency>.
24 changes: 3 additions & 21 deletions demo/data3.ttl
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix schema: <http://schema.org/> .
@prefix fidbau: <http://example.org/fidbau#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix geo: <http://www.opengis.net/ont/geosparql#> .

<http://example.org/fidbau#4f2a8de3-9fc8-40a9-9237-d5964520ec54>
a dcat:Dataset, fidbau:ArchitectureModelDataset ;
dcterms:title "Einsteinturm" ;
dcterms:spatial [
a dcterms:Location ;
geo:asWKT "POINT(8.65,49.87)"^^geo:wktLiteral ;
dcterms:description "Building has been realized here" ;
] ;
schema:material "Holz" ;
<http://purl.org/dc/terms/creator> _:n1150716783622461953 .
_:n1150716783622461953
<http://xmlns.com/foaf/0.1/name> "Stephan Tittel" ;
<http://xmlns.com/foaf/0.1/mbox> "[email protected]" ;
<http://purl.org/dc/terms/identifier> "https://orcid.org/0000-0002-0048-6835" ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Agent> .
<https://example.com/John-Doe> a <http://schema.org/Person> ;
<http://schema.org/age> 18 ;
<http://schema.org/name> "John", "Johnny" .
285 changes: 187 additions & 98 deletions demo/shapes1.ttl
Original file line number Diff line number Diff line change
@@ -1,109 +1,198 @@
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix schema: <http://schema.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dash: <http://datashapes.org/dash#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix dash: <http://datashapes.org/dash#> .
@prefix dbpedia: <http://dbpedia.org/ontology/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix fidbau: <http://purl.org/fidbau/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix geo: <http://www.opengis.net/ont/geosparql#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <http://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix prov: <http://www.w3.org/ns/prov#> .

@prefix ex: <http://example.com/> .
@prefix lexvo: <http://lexvo.org/id/iso639-1/> .
fidbau:ArchitectureModelDataset
rdf:type sh:NodeShape ;
dcterms:description "FID-BAU architecture model dataset with metadata fields for e.g. model dimensions and materials" ;
dcterms:title "Architecture model" ;
sh:node fidbau:BuildingDataset ;
sh:property [ sh:datatype xsd:integer ;
sh:description "Width [mm] of the model" ;
sh:group fidbau:PhysicalPropertiesGroup ;
sh:maxCount 1 ;
sh:minInclusive 1 ;
sh:name "Width" ;
sh:path schema:width
] ;
sh:property [ sh:datatype xsd:integer ;
sh:description "Height [mm] of the model" ;
sh:group fidbau:PhysicalPropertiesGroup ;
sh:maxCount 1 ;
sh:minInclusive 1 ;
sh:name "Height" ;
sh:path schema:height
] ;
sh:property [ sh:datatype xsd:integer ;
sh:description "Depth [mm] of the model" ;
sh:group fidbau:PhysicalPropertiesGroup ;
sh:maxCount 1 ;
sh:minInclusive 1 ;
sh:name "Depth" ;
sh:path schema:depth
] ;
sh:property [ sh:datatype xsd:string ;
sh:description "Scale of the model, e.g. 1:20" ;
sh:group fidbau:PhysicalPropertiesGroup ;
sh:maxCount 1 ;
sh:name "Scale" ;
sh:path dbpedia:scale ;
sh:pattern "^1:\\d+$"
] ;
sh:property [ sh:datatype xsd:string ;
sh:description "Material used with this model" , "Beim Bau des Modells verwendetes Material"@de ;
sh:group fidbau:PhysicalPropertiesGroup ;
sh:name "Artwork material" ;
sh:path schema:artworkSurface
] ;
sh:property [ sh:datatype xsd:string ;
sh:description "Technique used building this model" ;
sh:group fidbau:PhysicalPropertiesGroup ;
sh:name "Technique" ;
sh:path schema:technique
] .

ex:PersonShape
a sh:NodeShape ;
sh:targetClass schema:Person ;
rdfs:label "Person", "Osoba"@pl ;
sh:property ex:NameProperty ,
ex:KnowsProperty ,
ex:AgeProperty ,
ex:GenderProperty ,
ex:SpokenLanguagesProperty ,
ex:DateOfBirthProperty ,
ex:HomePageProperty ;
.
fidbau:BuildingDataset
rdf:type sh:NodeShape ;
dcterms:description "FID-BAU building dataset with metadata fields for e.g. locations and materials" ;
dcterms:title "Building" ;
sh:node fidbau:Dataset ;
sh:property [ sh:datatype xsd:string ;
sh:description "Construction material (eg. concrete, steel, iron, stone, brick, wood)." ;
sh:name "Construction material" ;
sh:path dbpedia:constructionMaterial
] ;
sh:property [ sh:description "Location of the building" ;
sh:name "Location" ;
sh:node fidbau:Location ;
sh:path dcterms:spatial
] .

ex:SimplifiedPersonShape
a sh:NodeShape ;
sh:targetNode ex:Jane_Doe ;
rdfs:label "Person (name-only)", "Osoba (tylko imię)"@pl ;
sh:property ex:NameProperty ;
.
fidbau:PhysicalPropertiesGroup
rdf:type sh:PropertyGroup ;
rdfs:label "Physical properties" .

ex:NameProperty
sh:path schema:name ;
sh:name "Name" ;
sh:datatype xsd:string ;
dash:singleLine true ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:order 2 ;
sh:description "Enter the name of the person here. You should adhere to the scheme <firstname> <lastname>"
.

ex:KnowsProperty
sh:path schema:knows ;
sh:class schema:Person ;
sh:group ex:FriendGroup ;
sh:description "All the persons that this person knows"
.
fidbau:Dataset rdf:type sh:NodeShape ;
owl:imports <https://w3id.org/nfdi4ing/metadata4ing/> ;

ex:AgeProperty
sh:path schema:age ;
sh:name "Age", "Wiek"@pl ;
sh:datatype xsd:integer ;
sh:maxCount 1 ;
sh:defaultValue 21 ;
sh:order 2 ;
sh:minInclusive 18 ;
.
dcterms:description "FID-BAU base dataset with minimal metadata fields" ;
dcterms:title "Generic" ;
sh:property [ sh:datatype xsd:string ;
sh:description "The name of the dataset" , "Der Name des Datensatzes"@de ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:name "Name" ;
sh:path dcterms:title
] ;
sh:property [ dash:singleLine false ;
sh:datatype xsd:string ;
sh:description "Description of the dataset" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:name "Abstract" ;
sh:path dcterms:description
] ;
sh:property [ sh:description "License of the dataset" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:name "License" ;
sh:nodeKind sh:IRI ;
sh:path dcterms:license ;
sh:in (
<http://creativecommons.org/licenses/by/4.0/>
<http://creativecommons.org/licenses/by-nc/4.0/>
)
] ;
sh:property [ sh:datatype xsd:date ;
sh:description "Date when this dataset has been issued" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:name "Issued" ;
sh:path dcterms:issued
] ;
sh:property [ sh:description "Whether data is freely accessible" ;
sh:in ( "public" "private" ) ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:name "Access type" ;
sh:path dcterms:accessRights
] ;
sh:property [
sh:name "Creator" ;
sh:description "Creator of the dataset" ;
sh:path dcterms:creator ;
sh:minCount 1 ;
sh:node fidbau:Person ;
] ;
sh:property [ sh:name "Attributions" ;
sh:node fidbau:Attribution ;
sh:path prov:qualifiedAttribution
] ;
sh:targetClass dcat:Dataset .

ex:GenderProperty
sh:path foaf:gender ;
sh:name "Gender", "Płeć"@pl ;
sh:in (
"Male" "Female" "Other" "Prefer not to tell"
) ;
sh:defaultValue "Male" ;
sh:maxCount 1 ;
sh:order 3 ;
sh:message "Please select a valid gender" ;
.
fidbau:Location rdf:type sh:NodeShape ;
rdfs:label "Location" ;
sh:property [ sh:datatype geo:wktLiteral ;
sh:description "Format WKT, e.g. POINT(8.65,49.87)" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:name "Coordinates" ;
sh:path geo:asWKT ;
sh:pattern "^POINT\\([+-]?([0-9]*[.])?[0-9]+,[+-]?([0-9]*[.])?[0-9]+\\)$"
] ;
sh:property [ sh:description "Description of the location" ;
sh:maxCount 1 ;
sh:name "Description" ;
sh:path dcterms:description
] ;
sh:targetClass dcterms:Location .

ex:DateOfBirthProperty
sh:path schema:birthDate ;
sh:name "Date of birth", "Data urodzenia"@pl ;
sh:maxCount 1 ;
sh:order 4 ;
sh:datatype xsd:date ;
.
fidbau:Person rdf:type sh:NodeShape ;
rdfs:label "Person" ;
sh:property [ sh:maxCount 1 ;
sh:minCount 1 ;
sh:name "Name" ;
sh:path foaf:name
] ;
sh:property [ sh:maxCount 1 ;
sh:name "Email" ;
sh:path foaf:mbox
] ;
sh:property [ sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:name "ORCID ID" ;
sh:path dcterms:identifier ;
sh:pattern "^https://orcid.org/\\d{4}-\\d{4}-\\d{4}-\\d{4}$"
] ;
sh:targetClass foaf:Agent .

ex:SpokenLanguagesProperty
sh:path vcard:language ;
sh:name "Spoken languages", "Języki"@pl ;
sh:nodeKind sh:IRI ;
sh:in (
lexvo:en lexvo:de lexvo:fr lexvo:pl lexvo:es
) ;
sh:order 5 ;
sh:minCount 1 ;
sh:maxCount 2 ;
.
fidbau:Attribution rdf:type sh:NodeShape ;
sh:property [ sh:maxCount 1 ;
sh:minCount 1 ;
sh:name "Person with role" ;
sh:node fidbau:Person ;
sh:path prov:agent
] ;
sh:property [ sh:name "Role" ;
sh:minCount 1 ;
sh:nodeKind sh:IRI ;
sh:path dcat:hadRole ;
sh:class prov:Role
] ;
sh:targetClass prov:Attribution .

ex:HomePageProperty
sh:path foaf:homepage ;
sh:name "Homepage URL", "Strona internetowa"@pl ;
sh:nodeKind sh:IRI ;
sh:order 6 ;
.

ex:FriendGroup
a sh:PropertyGroup ;
sh:order 17 ;
rdfs:label "Acquaintances", "Znajomi"@pl
.

lexvo:en rdfs:label "English", "angielski"@pl .
lexvo:de rdfs:label "German", "niemiecki"@pl .
lexvo:fr rdfs:label "French", "francuski"@pl .
lexvo:pl rdfs:label "Polish", "polski"@pl .
lexvo:es rdfs:label "Spanish", "hiszpański"@pl .
<http://creativecommons.org/licenses/by/4.0/> rdfs:label "CC-BY" .
<http://creativecommons.org/licenses/by-nc/4.0/> rdfs:label "CC-BY-NC" .
Loading

0 comments on commit aa77eaf

Please sign in to comment.