culturecreates / footlight-aggregator

A tool to inject entities from Artsdata to footlight
0 stars 0 forks source link

Add list of Places using Aggregator #10

Closed saumier closed 1 year ago

saumier commented 1 year ago

As a CMS admin, I would like to load all Places from a graph in Artsdata. The postal Address should be loaded as well.

Special Case: When the Postal Address is a blank node, can we load it? Example: http://kg.artsdata.ca/resource/K11-59

PREFIX schema: <http://schema.org/>
select * where {
    graph <http://kg.artsdata.ca/culture-creates/footlight/signelaval-com> {
        ?s a schema:Place .
    }
    ?adid schema:sameAs ?s .
    filter(contains(str(?adid), "kg.artsdata.ca/resource/K"))
}

Note: the filter is stricter with "kg.artsdata.ca/resource/K". This can be used in the Organizations SPARQL as well.