Skip to content

Commit

Permalink
Merge pull request #39 from viaacode/ARC-2494-viaa-publiek-content-vo…
Browse files Browse the repository at this point in the history
…or-a-v-uitfilteren

Filter haLicId:VIAA-PUBLIEK-CONTENT from AV items
  • Loading branch information
mielvds authored Nov 8, 2024
2 parents 703b1a1 + b38bffc commit 072fd53
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion typescript/queries/object.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,13 @@ CONSTRUCT {
# for incremental
FILTER (!BOUND(?since) || ?modified >= ?since )

BIND (REPLACE(STR(?schema_license_res), "^.*/([^/]*)$", "$1") as ?schema_license)
BIND(IF(
# Do not include haLicId:VIAA-PUBLIEK-CONTENT when object is AV
?dcterms_format NOT IN ("newspaper", "newspaperpage") && ?schema_license_res = haLicId:VIAA-PUBLIEK-CONTENT,
?unbound,
REPLACE(STR(?schema_license_res), "^.*/([^/]*)$", "$1")
) as ?schema_license)
#BIND (REPLACE(STR(?schema_license_res), "^.*/([^/]*)$", "$1") as ?schema_license)
BIND(IRI(CONCAT(str(?ie),"/",md5(str(?schema_license)))) AS ?ie_lic)
BIND(IRI(CONCAT(str(?ie),"/",md5(str(?dcterms_format)))) AS ?ie_format)

Expand Down

0 comments on commit 072fd53

Please sign in to comment.