DistinctSubjects
53
Triples
265
WasGeneratedBy
Text
PREFIX  schema: <https://schema.org/>

  SELECT DISTINCT  ?territory
  WHERE
    { GRAPH ?doc
        { ?territory  schema:name         ?territoryDescription ;
                    schema:containedInPlace  ?region
        }
    }
  ORDER BY ?territoryDescription
Title
Select territories
Text
PREFIX foaf:       <http://xmlns.com/foaf/0.1/>
PREFIX dct:        <http://purl.org/dc/terms/>
PREFIX schema:     <https://schema.org/>
PREFIX geo:        <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX xsd:        <http://www.w3.org/2001/XMLSchema#>

CONSTRUCT
{
    GRAPH ?graph
    {
        ?graph dct:title ?territoryDescription ;
            foaf:primaryTopic ?territory .

        ?territory a schema:City ;
            dct:title ?territoryDescription ;
            schema:name ?territoryDescription ;
            schema:identifier ?territoryID ;
            schema:containedInPlace ?region ;
            geo:lat ?latitude ;
            geo:long ?longitude .
    }
}
WHERE
{
    ?territory_row <#territoryID> ?territoryID ;
        <#territoryDescription> ?territoryDescription ;
        <#regionID> ?regionID ;
        <#latitude> ?latitudeString ;
        <#longitude> ?longitudeString .

    BIND(uri(concat(str($base), "territories/")) AS ?container)
    BIND(uri(concat(str(?container), encode_for_uri(?territoryID), "/")) AS ?graph)
    BIND(uri(concat(str(?graph), "#this")) AS ?territory)
    BIND(uri(concat(str($base), "regions/", encode_for_uri(?regionID), "/#this")) AS ?region)
    BIND(xsd:float(?latitudeString) AS ?latitude)
    BIND(xsd:float(?longitudeString) AS ?longitude)
}
Title
Territories
Delimiter
,
EndedAtTime
30 September 2026 01:30
Query
StartedAtTime
30 September 2026 01:30
Title
Territories
FileName
territories.csv
Format
Sha1sum (hex)
9d19eb1878f50579cec892184daa7c8b9066c5c5
Title
Territories
FileName
territories.rq
Format
Sha1sum (hex)
49419f1b86245a9b269fc8635edd3ce9da9463c3
Title
territories.rq