-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
574f8e8
commit c03e4b7
Showing
18 changed files
with
576 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | ||
PREFIX dcterms: <http://purl.org/dc/terms/> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
|
||
# Retrieves all NLCS-Object information and stores it in the familiar Excel/CSV format | ||
|
||
SELECT ?NLCSObject ?OMSCHRIJVING ?STATUS ?DISCIPLINE ?HOOFDGROEP ?ARCERING ?ARCERINGName ?SYMBOOL ?SYMBOOLName ?LAAGNAAM | ||
?BLineweight ?BColor ?BColorA ?BColorGD ?BColorGN ?BColorV ?BLinetype ?BLinetypeName | ||
?NLineweight ?NColor ?NColorA ?NColorGD ?NColorGN ?NColorV ?NLinetype ?NLinetypeName | ||
?TLineweight ?TColor ?TColorA ?TColorGD ?TColorGN ?TColorV ?TLinetype ?TLinetypeName | ||
?VLineweight ?VColor ?VColorA ?VColorGD ?VColorGN ?VColorV ?VLinetype ?VLinetypeName | ||
?VRKL_KORT ?VRKL_LANG ?ID ?KIND_VAN ?FASE ?Bewerking ?Element | ||
WHERE { | ||
?NLCSObjectTopConcept a owl:Class . | ||
?NLCSObjectTopConcept skos:prefLabel "NLCS-object" . | ||
?Hoofdgroep rdfs:subClassOf ?NLCSObjectTopConcept . | ||
?Hoofdgroep skos:prefLabel ?HOOFDGROEP . | ||
?NLCSObject rdfs:subClassOf+ ?Hoofdgroep . | ||
?NLCSObject skos:prefLabel ?OMSCHRIJVING . | ||
|
||
?NLCSObject rdfs:subClassOf ?bnodeStatus . | ||
?bnodeStatus owl:onProperty ?StatusProperty . | ||
?StatusProperty skos:prefLabel "Status" . | ||
OPTIONAL { | ||
?StatusProperty owl:hasValue/skos:prefLabel ?StatusValue . | ||
} | ||
BIND( COALESCE(?StatusValue, "*") AS ?STATUS) . | ||
?NLCSObject rdfs:subClassOf ?bnodeDiscipline . | ||
?bnodeDiscipline owl:onProperty ?DisciplineProperty . | ||
?DisciplineProperty skos:prefLabel "Discipline" . | ||
OPTIONAL { | ||
?DisciplineProperty owl:hasValue/skos:prefLabel ?DisciplineValue . | ||
} | ||
BIND( COALESCE(?DisciplineValue, "**") AS ?DISCIPLINE) . | ||
OPTIONAL { | ||
?NLCSObject rdfs:subClassOf ?bnodeArcering . | ||
?bnodeArcering owl:onProperty <https://w3id.org/nen2660/def#isDescribedBy> . | ||
?bnodeArcering owl:onClass ?ARCERING . | ||
?ARCERING rdfs:subClassOf* ?ArceringTopConcept . | ||
?ArceringTopConcept skos:prefLabel "Arcering" . | ||
?ARCERING skos:prefLabel ?ARCERINGName . | ||
FILTER( CONTAINS(STR(?ARCERING), "http://data.digigo.nu/nlcs/def/")) | ||
} OPTIONAL { | ||
?NLCSObject rdfs:subClassOf ?bnodeSymbool . | ||
?bnodeSymbool owl:onProperty <https://w3id.org/nen2660/def#isDescribedBy> . | ||
?bnodeSymbool owl:onClass ?SYMBOOL . | ||
?SYMBOOL rdfs:subClassOf* ?SymboolTopConcept . | ||
?SymboolTopConcept skos:prefLabel "Symbool" . | ||
?SYMBOOL skos:prefLabel ?SYMBOOLName . | ||
FILTER( CONTAINS(STR(?SYMBOOL), "http://data.digigo.nu/nlcs/def/")) | ||
} | ||
OPTIONAL { BIND (STRBEFORE(STR(?SYMBOOL), "-") AS ?FASE ) . } | ||
?NLCSObject ?LaagnaamProperty ?LAAGNAAM . | ||
?LaagnaamProperty skos:prefLabel "Laagnaam" . | ||
OPTIONAL { | ||
?NLCSObject ?BLineweightProperty ?BLineweight . | ||
?BLineweightProperty skos:prefLabel "B lineweight" . | ||
?NLCSObject ?BColorProperty ?BColor . | ||
?BColorProperty skos:prefLabel "B color" . | ||
?NLCSObject ?BColorAProperty ?BColorA . | ||
?BColorAProperty skos:prefLabel "B color A" . | ||
?NLCSObject ?BColorGDProperty ?BColorGD . | ||
?BColorGDProperty skos:prefLabel "B color GD" . | ||
?NLCSObject ?BColorGNProperty ?BColorGN . | ||
?BColorGNProperty skos:prefLabel "B color GN" . | ||
?NLCSObject ?BColorVProperty ?BColorV . | ||
?BColorVProperty skos:prefLabel "B color V" . | ||
?NLCSObject ?BLinetypeProperty ?BLinetype . | ||
?BLinetypeProperty skos:prefLabel "B linetype" . | ||
?BLinetype skos:prefLabel ?BLinetypeName . | ||
} OPTIONAL { | ||
?NLCSObject ?NLineweightProperty ?NLineweight . | ||
?NLineweightProperty skos:prefLabel "N lineweight" . | ||
?NLCSObject ?NColorProperty ?NColor . | ||
?NColorProperty skos:prefLabel "N color" . | ||
?NLCSObject ?NColorAProperty ?NColorA . | ||
?NColorAProperty skos:prefLabel "N color A" . | ||
?NLCSObject ?NColorGDProperty ?NColorGD . | ||
?NColorGDProperty skos:prefLabel "N color GD" . | ||
?NLCSObject ?NColorGNProperty ?NColorGN . | ||
?NColorGNProperty skos:prefLabel "N color GN" . | ||
?NLCSObject ?NColorVProperty ?NColorV . | ||
?NColorVProperty skos:prefLabel "N color V" . | ||
?NLCSObject ?NLinetypeProperty ?NLinetype . | ||
?NLinetypeProperty skos:prefLabel "N linetype" . | ||
?NLinetype skos:prefLabel ?NLinetypeName . | ||
} OPTIONAL { | ||
?NLCSObject ?TLineweightProperty ?TLineweight . | ||
?TLineweightProperty skos:prefLabel "T lineweight" . | ||
?NLCSObject ?TColorProperty ?TColor . | ||
?TColorProperty skos:prefLabel "T color" . | ||
?NLCSObject ?TColorAProperty ?TColorA . | ||
?TColorAProperty skos:prefLabel "T color A" . | ||
?NLCSObject ?TColorGDProperty ?TColorGD . | ||
?TColorGDProperty skos:prefLabel "T color GD" . | ||
?NLCSObject ?TColorGNProperty ?TColorGN . | ||
?TColorGNProperty skos:prefLabel "T color GN" . | ||
?NLCSObject ?TColorVProperty ?TColorV . | ||
?TColorVProperty skos:prefLabel "T color V" . | ||
?NLCSObject ?TLinetypeProperty ?TLinetype . | ||
?TLinetypeProperty skos:prefLabel "T linetype" . | ||
?TLinetype skos:prefLabel ?TLinetypeName . | ||
} OPTIONAL { | ||
?NLCSObject ?VLineweightProperty ?VLineweight . | ||
?VLineweightProperty skos:prefLabel "V lineweight" . | ||
?NLCSObject ?VColorProperty ?VColor . | ||
?VColorProperty skos:prefLabel "V color" . | ||
?NLCSObject ?VColorAProperty ?VColorA . | ||
?VColorAProperty skos:prefLabel "V color A" . | ||
?NLCSObject ?VColorGDProperty ?VColorGD . | ||
?VColorGDProperty skos:prefLabel "V color GD" . | ||
?NLCSObject ?VColorGNProperty ?VColorGN . | ||
?VColorGNProperty skos:prefLabel "V color GN" . | ||
?NLCSObject ?VColorVProperty ?VColorV . | ||
?VColorVProperty skos:prefLabel "V color V" . | ||
?NLCSObject ?VLinetypeProperty ?VLinetype . | ||
?VLinetypeProperty skos:prefLabel "V linetype" . | ||
?VLinetype skos:prefLabel ?VLinetypeName . | ||
} | ||
OPTIONAL { | ||
?NLCSObject ?VRKLProperty ?VRKL_KORT . | ||
?VRKLProperty skos:prefLabel "VRKL_KORT" . | ||
} OPTIONAL { | ||
?NLCSObject ?IDProperty ?ID . | ||
?IDProperty skos:prefLabel "ID" . | ||
} OPTIONAL { | ||
?NLCSObject rdfs:subClassOf ?NLCSParentObject . | ||
?NLCSParentObject ?IDPropertyParent ?KIND_VAN . | ||
?IDPropertyParent skos:prefLabel "ID" . | ||
} | ||
OPTIONAL { | ||
?NLCSObject ?VRKL_LANGProperty ?VRKL_LANG . | ||
?VRKL_LANGProperty skos:prefLabel "VRKL_LANG" . | ||
} | ||
bind (strafter(strafter (strafter (?Laagnaam,"-"),"-"),"-") as ?ObjectTotal ) | ||
bind (strafter (strafter (strafter (?Laagnaam,"-"),"-"),"-") as ?ElementPrePre ) | ||
bind ( if ( contains(?ElementPrePre, "-"), strafter(?ElementPrePre, "-"),?ElementPrePre) as ?ElementPre ) | ||
bind ( if ( contains(?ElementPre, "-"), strafter(?ElementPre, "-"),?ElementPre) as ?Element ) | ||
bind ( if ( contains(?ObjectTotal, "_"), strbefore(?ObjectTotal, "_"),strbefore(?ObjectTotal, "-")) as ?Object ) | ||
bind ( if ( contains(?ObjectTotal, "_"), strafter(?ObjectTotal, "_"),strafter(?ObjectTotal, "-")) as ?SubObject01Total ) | ||
bind ( if ( contains(?SubObject01Total, "_"), strbefore(?SubObject01Total, "_"),strbefore(?SubObject01Total, "-")) as ?SubObject01 ) | ||
bind ( if ( contains(?SubObject01Total, "_"), strafter(?SubObject01Total, "_"),strafter(?SubObject01Total, "-")) as ?SubObject02Total ) | ||
bind ( if ( contains(?SubObject02Total, "_"), strbefore(?SubObject02Total, "_"),strbefore(?SubObject02Total, "-")) as ?SubObject02 ) | ||
bind ( if ( contains(?SubObject02Total, "_"), strafter(?SubObject02Total, "_"),strafter(?SubObject02Total, "-")) as ?SubObject03Total ) | ||
bind ( if ( contains(?SubObject03Total, "_"), strbefore(?SubObject03Total, "_"),strbefore(?SubObject03Total, "-")) as ?SubObject03 ) | ||
bind ( if ( contains(?SubObject03Total, "_"), strafter(?SubObject03Total, "_"),strafter(?SubObject03Total, "-")) as ?SubObject04Total ) | ||
bind ( if ( contains(?SubObject04Total, "_"), strbefore(?SubObject04Total, "_"),strbefore(?SubObject04Total, "-")) as ?SubObject04 ) | ||
bind ( if ( contains(?SubObject04Total, "_"), strafter(?SubObject04Total, "_"),strafter(?SubObject04Total, "-")) as ?SubObject05Total ) | ||
bind ( if ( contains(?SubObject05Total, "_"), strbefore(?SubObject05Total, "_"),strbefore(?SubObject05Total, "-")) as ?SubObject05 ) | ||
bind ( if ( contains(?SubObject05Total, "_"), strafter(?SubObject05Total, "_"),strafter(?SubObject05Total, "-")) as ?BewerkingTotal ) | ||
bind ( if ( contains(?BewerkingTotal, "_"), strbefore(?BewerkingTotal, "_"),strbefore(?BewerkingTotal, "-")) as ?Bewerking ) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | ||
PREFIX dcterms: <http://purl.org/dc/terms/> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
|
||
# Retrieves all abibliotheek info and stores it in the familiar Excel/CSV format | ||
|
||
SELECT distinct ?bibliotheek | ||
|
||
WHERE { | ||
?NLCSObjectTopConcept a owl:Class . | ||
?NLCSObjectTopConcept skos:prefLabel "Arcering" . | ||
?Abib rdfs:subClassOf ?NLCSObjectTopConcept. | ||
?Abib skos:prefLabel ?bibliotheek . | ||
} | ||
orderby ?bibliotheek |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | ||
PREFIX dcterms: <http://purl.org/dc/terms/> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
|
||
# Retrieves all Arcering information and stores it in the familiar Excel/CSV format | ||
|
||
SELECT DISTINCT ?FASE ?BIB ?ARCERING ?opt ?ID ?VRKL_KORT ?VRKL_LANG ?STATUS | ||
WHERE { | ||
?ArceringTopConcept a owl:Class . | ||
?ArceringTopConcept skos:prefLabel "Arcering" . | ||
?Abib rdfs:subClassOf ?ArceringTopConcept . | ||
?Abib skos:prefLabel ?BIB . | ||
?Arcering rdfs:subClassOf+ ?Abib . | ||
?Arcering skos:prefLabel ?ARCERING . | ||
optional { | ||
?Arcering rdfs:subClassOf ?bnodeStatus . | ||
?bnodeStatus owl:onProperty ?StatusProperty . | ||
?StatusProperty skos:prefLabel "Status" . | ||
OPTIONAL { ?StatusProperty owl:hasValue/skos:prefLabel ?StatusValue . } | ||
} | ||
BIND( COALESCE(?StatusValue, "*") AS ?STATUS) . | ||
FILTER (CONTAINS(STR(?ARCERING), STR(CONCAT(STR(?BIB), "-")))) | ||
OPTIONAL { | ||
BIND (STRBEFORE(STR(?ARCERING), STR(CONCAT(CONCAT("-", STR(?BIB)), "-" ))) AS ?FASE) . | ||
optional { bind ( strafter(substr(?ARCERING,5),"-") as ?opt) } | ||
} OPTIONAL { | ||
?Arcering ?IDProperty ?ID . | ||
?IDProperty skos:prefLabel "ID" . | ||
} OPTIONAL { | ||
?Arcering ?VRKL_KORTProperty ?VRKL_KORT . | ||
?VRKL_KORTProperty skos:prefLabel "VRKL_KORT" . | ||
} OPTIONAL { | ||
?Arcering ?VRKL_LANGProperty ?VRKL_LANG . | ||
?VRKL_LANGProperty skos:prefLabel "VRKL_LANG" . | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | ||
PREFIX dcterms: <http://purl.org/dc/terms/> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
|
||
# Retrieves all Discipline information and stores it in the familiar Excel/CSV format | ||
|
||
SELECT DISTINCT ?Code ?Verklaring | ||
WHERE { | ||
?DisciplineTopConcept skos:prefLabel "Disciplines" . | ||
?DISCIPLINE a ?DisciplineTopConcept ; | ||
skos:prefLabel ?Code ; | ||
skos:definition ?Verklaring . | ||
} orderby ?Code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | ||
PREFIX dcterms: <http://purl.org/dc/terms/> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
|
||
# Retrieves all general Hoofdgroep information and stores it in the familiar Excel/CSV format | ||
|
||
SELECT distinct ?Afkorting ?Hoofdgroep ?ID | ||
|
||
WHERE { | ||
?NLCSObjectTopConcept a owl:Class . | ||
?NLCSObjectTopConcept skos:prefLabel "NLCS-object" . | ||
?HOOFDGROEP rdfs:subClassOf ?NLCSObjectTopConcept . | ||
?HOOFDGROEP skos:prefLabel ?Afkorting ; | ||
skos:altLabel ?Hoofdgroep . | ||
OPTIONAL { | ||
?HOOFDGROEP ?IDProperty ?ID . | ||
?IDProperty skos:prefLabel "ID" . | ||
} | ||
} orderby ?Afkorting |
Oops, something went wrong.