Skip to content

Commit

Permalink
Proefneming met gwsw:ExtraObjecttype
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinusVonhof committed Aug 5, 2024
1 parent 690d28b commit fcbeb95
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
25 changes: 21 additions & 4 deletions apps/Status/CountPut.rq
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
# Proef (20240805): COUNT() telt het aantal voorkomens van ?s (niet het aantal triples)
# Dubbele typeringen (VerdektePut) hebben dan geen invloed, de telling klopt

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX : <{{&version}}>
SELECT (COUNT (*) AS ?count)
WHERE

#PREFIX gwsw: <http://data.gwsw.nl/1.6/totaal/>
PREFIX gwsw: <{{&version}}>

SELECT (COUNT (*) AS ?count) WHERE
{
{?s rdf:type :Put}
?s rdf:type gwsw:Put .

## Gebruik deze om multitypes af te handelen: (in deze query niet relevant) (20240805)
#optional { # vermeld de extra types
# { select ?s ?extra where {
# ?s rdf:type gwsw:VerdektePut.
# bind ("verdekt" as ?extra ) .
# }
# }
#}
## Alleen functionele types:
#?s sesame:directType ?type .
#filter not exists { ?type rdfs:subClassOf gwsw:ExtraObjecttype }
}
4 changes: 2 additions & 2 deletions apps/Status/NameColl.rq
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ SELECT ?name ?NameColl
WHERE
{
?name rdfs:label ?lab .
FILTER (CONTAINS(LCASE(STR(?lab)), "collectie_"))
BIND (STRAFTER(LCASE(STR(?lab)), "collectie_") as ?NameColl)
FILTER (CONTAINS(LCASE(STR(?lab)), "collectie_"))
BIND (STRAFTER(LCASE(STR(?lab)), "collectie_") as ?NameColl)
}

0 comments on commit fcbeb95

Please sign in to comment.