Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #108

Merged
merged 9 commits into from
Oct 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13,401 changes: 8,114 additions & 5,287 deletions data/externe-bronnen/schema.json

Large diffs are not rendered by default.

54 changes: 4 additions & 50 deletions data/imbor.model.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,18 @@ PREFIX graph: <http://linkeddata.crow.nl/publication-v2/ns/crow/imbor/def/graph/
# ontologie meegegeven.

<http://linkeddata.crow.nl/publication-v2/ns/crow/imbor/>
a owl:Ontology , dcat:Dataset ;
a owl:Ontology , dcat:Catalog ;
rdfs:label "IMBOR" ;
rdfs:comment "Informatiemodel Beheer Openbare Ruimte: in Linked data-formaat"@nl-NL ;
rdfs:seeAlso <https://www.crow.nl/thema-s/management-openbare-ruimte/imbor> ;
# Dublin Core metadata t.b.v. DCAT beschrijving metadata
dcterms:title "IMBOR" ;
dcterms:description "Informatiemodel Beheer Openbare Ruimte: in Linked data-formaat"@nl-NL ;
dcterms:language "nl" ;
dcterms:publisher <http://crow.nl> ;
# owl:versionInfo NOW() -- wordt per query toegevoegd -- data/transformaties/002 Voeg versieinformatie toe.rq
# owl:versionInfo "1.0.0" -- wordt per query toegevoegd -- data/transformaties/002 Voeg versieinformatie toe.rq

dcterms:publisher <http://crow.nl> ;
dcat:dataset
graph:GUID
, graph:Shapes
, graph:Domeinwaarden
, graph:Eigenschappen
, graph:Objecten
, graph:Groeperingen
;

rdfs:seeAlso <https://www.crow.nl/thema-s/management-openbare-ruimte/imbor> ;
foaf:homepage <https://www.crow.nl/thema-s/management-openbare-ruimte/imbor> ;
owl:imports
<https://w3id.org/def/basicsemantics-owl>
Expand All @@ -56,45 +47,8 @@ PREFIX graph: <http://linkeddata.crow.nl/publication-v2/ns/crow/imbor/def/graph/
<http://crow.nl>
a foaf:Organization ;
foaf:homepage <http://www.crow.nl/> ;
foaf:name "CROW" ;
foaf:name "Stichting CROW" ;
.

# a dcat:Dataset -> dcat:dataset
# De onderliggende datasets worden als losse grafen aangeboden.

graph:GUID
a dcat:Dataset ;
dcterms:title "GUID"@nl-NL ;
dcterms:description "Bevat de CROW Datacatalogus (Access) GUIDs van alle entiteiten in deze Linked data distributie."@nl-NL ;
.

graph:Shapes
a dcat:Dataset ;
dcterms:title "Shapes"@nl-NL ;
dcterms:description "Objecttypen worden aan bepaalde eigenschappen gekoppeld met Shapes. Te gebruiken voor areaaldatavalidatie."@nl-NL ;
.

graph:Domeinwaarden
a dcat:Dataset ;
dcterms:title "Domeinwaarden"@nl-NL ;
dcterms:description "Sommige eigenschappen hebben een vaste, beperkte lijst van toegestane waardes: domeinwaardes."@nl-NL ;
.

graph:Eigenschappen
a dcat:Dataset ;
dcterms:title "Eigenschappen"@nl-NL ;
dcterms:description "Eigenschappen beschrijven niet alleen wat vastgelegd wordt over objecttypen, maar ook hoe en met welke precisie."@nl-NL ;
.

graph:Objecten
a dcat:Dataset ;
dcterms:title "Objecten"@nl-NL ;
dcterms:description "Object(type)n beschrijven beheerbare zaken in de openbare ruimte."@nl-NL ;
.

graph:Groeperingen
a dcat:Dataset ;
dcterms:title "Groeperingen"@nl-NL ;
dcterms:description "Omwille van de bruikbaarheid, zijn er verschillende voorselecties gemaakt waarmee objecten en eigenschappen snel gevonden kunnen worden, zonder te verdwalen in de breedheid van IMBOR."@nl-NL ;
.

18 changes: 0 additions & 18 deletions data/transformaties/002 Voeg versieinformatie toe.rq

This file was deleted.

2 changes: 1 addition & 1 deletion data/transformaties/321 Object-properties.rq
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ INSERT {

GRAPH graph:Eigenschappen {
?attr
a owl:ObjectProperty ;
a rdf:Property ;
.
}

Expand Down
17 changes: 14 additions & 3 deletions data/transformaties/322 Datatype-properties.rq
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,37 @@ PREFIX qudt: <http://qudt.org/vocab/quantitykind/>
PREFIX unit: <http://qudt.org/vocab/unit/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

# cf. NTA 8035 - pagina 51

DELETE {
GRAPH graph:Shapes {
?propertyShape
sh:path ?attr ;
.
}
}

INSERT {
GRAPH graph:Eigenschappen {
?attr
nta8035:unit ?unit ;
rdfs:range nta8035:QuantityValue ;
nta8035:unit ?unit ; # TODO: NTA noemt alleen :unit op de anon waarde
nta8035:quantityKind ?qkind ;
.
}

GRAPH graph:Eigenschappen {
?attr
a owl:DatatypeProperty ;
a rdf:Property ;
.
}

GRAPH graph:Shapes {
?propertyShape
sh:datatype ?xsdstring ;
sh:path ( ?attr rdf:value ) ;
.
}
}

GRAPH graph:GUID {
?eenheid skos:notation ?guid .
Expand Down
2 changes: 1 addition & 1 deletion data/transformaties/323 Annotation-properties.rq
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ INSERT {

GRAPH graph:Eigenschappen {
?attr
a owl:AnnotationProperty ;
a rdf:Property ;
.
}

Expand Down
20 changes: 20 additions & 0 deletions data/transformaties/920 Ruim grafen op.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Klaar met alle oude data
# Verwijder de tabel-grafen

PREFIX graph: <http://linkeddata.crow.nl/publication-v2/ns/crow/imbor/def/graph/>

DELETE {
GRAPH ?g {
?s ?p ?o .
}
}

INSERT {
?s ?p ?o .
}

WHERE {
GRAPH ?g {
?s ?p ?o .
}
}
53 changes: 53 additions & 0 deletions data/transformaties/930 Versieinformatie.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
PREFIX adms: <http://www.w3.org/ns/adms#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX graph: <http://linkeddata.crow.nl/publication-v2/ns/crow/imbor/def/graph/>
PREFIX groep: <http://linkeddata.crow.nl/publication-v2/ns/crow/imbor/def/groepering/>
PREFIX imbor: <http://linkeddata.crow.nl/publication-v2/ns/crow/imbor/def/objecttype/>
PREFIX imborp: <http://linkeddata.crow.nl/publication-v2/ns/crow/imbor/def/eigenschap/>
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 skos: <http://www.w3.org/2004/02/skos/core#>

INSERT {
<http://linkeddata.crow.nl/publication-v2/ns/crow/imbor/>
owl:versionInfo ?nu ;
owl:versionInfo ?versie ;
.

?versieCollectieURI a skos:Collection ;
rdfs:comment ?collectieComment ;
rdfs:label ?versietitel ;
rdfs:isDefinedBy <http://linkeddata.crow.nl/publication-v2/ns/crow/imbor/version/***> ;
skos:member ?s ;
.

<http://linkeddata.crow.nl/publication-v2/ns/crow/imbor/version/***>
a dcat:Distribution ;
dcterms:issued ?nu ;
dcterms:issued ?versie ;
dcterms:title ?versietitel ;
# dcat:accessURL <GENERATED VERSIONED URL BY POSTMAN> ; # TODO: Dit moet via LDP
# dcat:downloadURL <LINK TO VERSIONED TTL IN GITHUB> ; # TODO: Dit moet via LDP
dcterms:license "© Stichting CROW. Alle rechten voorbehouden." ; # TODO: Geen duidelijke licentie
.
}

WHERE {
BIND ( NOW() AS ?nu )
BIND ( '2020-07' AS ?versie)

BIND ( CONCAT('IMBOR ', ?versie) AS ?versietitel )
BIND ( URI( CONCAT( STR(groep:), 'Versie', ?versie)) AS ?versieCollectieURI )
BIND ( CONCAT('Dit is de verzameling van alle resources van IMBOR versie '@nl-NL, ?versie) AS ?collectieComment)

{
?s ?p ?o .
FILTER STRSTARTS(STR(?s), STR(imbor:))
} UNION {
?s ?p ?o .
FILTER STRSTARTS(STR(?s), STR(imborp:))
}
}
783 changes: 190 additions & 593 deletions docs/SPARQL-voorbeelden.ipynb

Large diffs are not rendered by default.