question
stringlengths
38
242
sparql
stringlengths
1.05k
2.92k
Which are the datasets that cover the subject agriculture, fisheries, forestry and food?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture, fisheries, forestry and food'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'agriculture, fisheries, forestry and food', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find all datasets that deal with the subject agriculture, fisheries, forestry and food
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture, fisheries, forestry and food'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'agriculture, fisheries, forestry and food', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which are the datasets that cover subject agriculture, fisheries, forestry and food and theme agriculture, fisheries, forestry and food?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture, fisheries, forestry and food'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'agriculture, fisheries, forestry and food', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find all datasets that deal with the theme agriculture, fisheries, forestry and food
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture, fisheries, forestry and food'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'agriculture, fisheries, forestry and food', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which are all agriculture, fisheries, forestry and food datasets that deals with subject agriculture, fisheries, forestry and food?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture, fisheries, forestry and food'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'agriculture, fisheries, forestry and food', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find all datasets that cover the subject agriculture, fisheries, forestry and food and theme agriculture, fisheries, forestry and food
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture, fisheries, forestry and food'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'agriculture, fisheries, forestry and food', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find all datasets that cover the subject agriculture, fisheries, forestry and food
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture, fisheries, forestry and food'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'agriculture, fisheries, forestry and food', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find all datasets that deal with theme agriculture, fisheries, forestry and food and subject agriculture, fisheries, forestry and food
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture, fisheries, forestry and food'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'agriculture, fisheries, forestry and food', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which are the datasets with geographical coverage italy and time span 2006 - 2018?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'italy'@en, 'i')) } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find the datasets with geographical coverage italy in the period 2006 - 2018?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'italy'@en, 'i')) } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find datasets with country coverage italy
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'italy'@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which are the datasets with country coverage italy?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'italy'@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which are the datasets whose geographical coverage includes italy?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'italy'@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which datasets have as geographical coverage europe countries and time span 2006 - 2018?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . ?continent skos:prefLabel ?continent_name FILTER ( lang(?continent_name) = 'en') FILTER ( regex(?continent_name, europe@en, 'i')) } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find all datasets with europe geographical coverage
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . ?continent skos:prefLabel ?continent_name FILTER ( lang(?continent_name) = 'en') FILTER ( regex(?continent_name, europe@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which datasets have as geographical coverage europe countries?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . ?continent skos:prefLabel ?continent_name FILTER ( lang(?continent_name) = 'en') FILTER ( regex(?continent_name, europe@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which datasets have environmental policy purpose and time span from 2009 to 2009?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i')) . } } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find all datasets related to environmental policy
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which are the datasets whose purpose is environmental policy?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which datasets are related to environmental policy?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which are the datasets whose topic is soil sample and period 2006 - 2018?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil sample', 'i')) . } } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find all datasets related to the topic soil sample
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil sample', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which datasets cover the topic soil sample?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil sample', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which are the datasets whose topic is soil sample?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil sample', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }