| Description |
<p>In deze dataset kan je de eerste 50 evenementen terugvinden die gebruikt worden op de Visit Gent website.<br></p><p>Je
kan de volledige dataset ook bevragen als Linked Open Data.</p><p>Voor deze bevragingen maak je gebruik van de RDF zoektaal
SPARQL.</p><p><a href="https://data.stad.gent/pages/linked-open-data/">Lees meer over Linked Open Data</a></p>
<p><a href="https://stad.gent/data/datasets/aHR0cHM6Ly9zdGFkLmdlbnQvaWQvZGNhdC9saW5rZWQtZGF0YS9kYXRhc2V0LzJlNGEwODdhMzY5Y2FjYTRhZWNlYzNlYjEzNzM1NjkzODI0ODlkY2JhNzM3N2IyZmVjN2ViOTNjNDQ2M2NjYjc="
target="_blank">Bekijk de structuur van de RDF dataset</a><br></p>
<p><a href="https://stad.gent/sparql?query=PREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0APREFIX+schema%3A+%3Chttp%3A%2F%2Fschema.org%2F%3E%0APREFIX+geo%3A+%3Chttp%3A%2F%2Fwww.opengis.net%2Font%2Fgeosparql%23%3E%0ASELECT%0ADISTINCT%0A++%3F_event%0A++%3F_contact%0A++%3Fname_nl%0A++%3Fname_en%0A++%3Fname_fr%0A++%3Fname_de%0A++%3Fname_es%0A++%3Fdescription_nl%0A++%3Fdescription_en%0A++%3Fdescription_fr%0A++%3Fdescription_de%0A++%3Fdescription_es%0A++%3Furl%0A++%3Fdate_start%0A++%3Fdate_end%0A++%3Fcreated%0A++%3Fmodified%0A++%3Fctcname_nl%0A++%3Faddress%0A++%3Fpostal%0A++%3Flocal%0A++%3Fcountry%0A++%3Flong%0A++%3Flat%0AFROM+%3Chttp%3A%2F%2Fstad.gent%2Ftourism%2Fevents%2F%3E%0AFROM+%3Chttp%3A%2F%2Fstad.gent%2Ftourism%2Fterms%2F%3E%0AWHERE+%7B%0A++%3F_event+a+%3Chttp%3A%2F%2Fschema.org%2FEvent%3E.%0A++%3F_event+schema%3Aname+%3Fname.%0A++%3F_event+schema%3Adescription+%3Fdescription.%0A++%3F_event+schema%3Aurl+%3Furl.%0A++%3F_event+dct%3Acreated+%3Fcreated.%0A++OPTIONAL+%7B%3F_event+dct%3Amodified+%3Fmodified.%7D%0A++%3F_event+dct%3Asubject+%3F_cat.%0A++%3F_cat+schema%3Aname+%3Fcatname.%0A++%3F_event+schema%3AcontactPoint+%3F_contact.%0A++%3F_contact+schema%3Aname+%3Fctcname_nl.%0A++%3F_contact+schema%3AstreetAddress+%3Faddress.%0A++%3F_contact+schema%3ApostalCode+%3Fpostal.%0A++%3F_contact+schema%3AaddressLocality+%3Flocal.%0A++%3F_contact+schema%3AaddressCountry+%3Fcountry.%0A++%3F_contact+schema%3Ageometry+%3F_location.%0A++%3F_location+geo%3AasWKT+%3Flocation.%0A++bind(+replace(+str(%3Flocation)%2C+%22%5E%5B%5E0-9%5C%5C.-%5D*(%5B-%5D%3F%5B0-9%5C%5C.%5D%2B)+.*%24%22%2C+%22%241%22+)+as+%3Flong+)%0A++bind(+replace(+str(%3Flocation)%2C+%22%5E.*+(%5B-%5D%3F%5B0-9%5C%5C.%5D%2B)%5B%5E0-9%5C%5C.%5D*%24%22%2C+%22%241%22+)+as+%3Flat+)%0A++OPTIONAL+%7B%3F_event+schema%3AstartDate+%3Fdate_start%7D%0A++OPTIONAL+%7B%3F_event+schema%3AendDate+%3Fdate_end%7D%0A++OPTIONAL+%7B%3F_event+schema%3Aname+%3Fname_nl%7D%0A++OPTIONAL+%7B%3F_event+schema%3Aname+%3Fname_en%7D%0A++OPTIONAL+%7B%3F_event+schema%3Aname+%3Fname_fr%7D%0A++OPTIONAL+%7B%3F_event+schema%3Aname+%3Fname_de%7D%0A++OPTIONAL+%7B%3F_event+schema%3Aname+%3Fname_es%7D%0A++OPTIONAL+%7B%3F_event+schema%3Adescription+%3Fdescription_nl%7D%0A++OPTIONAL+%7B%3F_event+schema%3Adescription+%3Fdescription_en%7D%0A++OPTIONAL+%7B%3F_event+schema%3Adescription+%3Fdescription_fr%7D%0A++OPTIONAL+%7B%3F_event+schema%3Adescription+%3Fdescription_de%7D%0A++OPTIONAL+%7B%3F_event+schema%3Adescription+%3Fdescription_es%7D%0A++FILTER+(lang(%3Fname_nl)+%3D+'nl')%0A++FILTER+(lang(%3Fname_en)+%3D+'en')%0A++FILTER+(lang(%3Fname_fr)+%3D+'fr')%0A++FILTER+(lang(%3Fname_de)+%3D+'de')%0A++FILTER+(lang(%3Fname_es)+%3D+'es')%0A++FILTER+(lang(%3Fdescription_nl)+%3D+'nl')%0A++FILTER+(lang(%3Fdescription_en)+%3D+'en')%0A++FILTER+(lang(%3Fdescription_fr)+%3D+'fr')%0A++FILTER+(lang(%3Fdescription_de)+%3D+'de')%0A++FILTER+(lang(%3Fdescription_es)+%3D+'es')%0A++FILTER+(lang(%3Fctcname_nl)+%3D+'nl')%0A++FILTER+(xsd%3Adate(%3Fdate_start)+%3C%3D+now()+%26%26+xsd%3Adate(%3Fdate_end)+%3E%3D+now())%0A%7D%0AORDER+BY+%3Fdate_end"
target="_blank">Gebruik de voorbeeld SPARQL-query om deze dataset zelf op te vragen:</a></p><pre>PREFIX xsd: <
http://www.w3.org/2001/XMLSchema#>
PREFIX
dct: <
http://purl.org/dc/terms/>
PREFIX
schema: <
http://schema.org/>
PREFIX
geo: <
http://www.opengis.net/ont/geosparql#>
SELECT
DISTINCT
?_event
?_contact
?name_nl
?description_nl
?url
?date_start
?date_end
?created
?modified
?ctcname_nl
?address
?postal
?local
?country
?long
?lat
FROM <
http://stad.gent/tourism/events/>
FROM
<
http://stad.gent/tourism/terms/>
WHERE
{
?_event a <
http://schema.org/Event>.
?_event schema:name ?name.
?_event schema:description ?description.
?_event schema:url ?url.
?_event dct:created ?created.
OPTIONAL {?_event dct:modified ?modified.}
?_event dct:subject ?_cat.
?_cat schema:name ?catname.
?_event schema:contactPoint ?_contact.
?_contact schema:name ?ctcname_nl.
?_contact schema:streetAddress ?address.
?_contact schema:postalCode ?postal.
?_contact schema:addressLocality ?local.
?_contact schema:addressCountry ?country.
?_contact schema:geometry ?_location.
?_location geo:asWKT ?location.
bind( replace( str(?location), "^[^0-9\\.-]*([-]?[0-9\\.]+) .*$", "$1" ) as ?long )
bind( replace( str(?location), "^.* ([-]?[0-9\\.]+)[^0-9\\.]*$", "$1" ) as ?lat )
OPTIONAL {?_event schema:startDate ?date_start}
OPTIONAL {?_event schema:endDate ?date_end}
OPTIONAL {?_event schema:name ?name_nl}
OPTIONAL {?_event schema:description ?description_nl}
FILTER (lang(?name_nl) = 'nl')
FILTER (lang(?description_nl) = 'nl')
FILTER (lang(?ctcname_nl) = 'nl')
FILTER (xsd:date(?date_start) <= now() && xsd:date(?date_end) >= now())
}
ORDER BY ?date_end LIMIT 50<br></pre>
|