question
stringlengths
38
242
sparql
stringlengths
1.05k
2.92k
Which are the datasets whose geographical coverage includes serbia?
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, 'serbia'@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 antarctica 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, antarctica@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 antarctica 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, antarctica@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 antarctica 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, antarctica@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 agriculture policy purpose and time span from 2006 to 2018?
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, 'agriculture policy', '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 agriculture 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, 'agriculture 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 agriculture 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, 'agriculture 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 agriculture 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, 'agriculture 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 pollution and period 2009 - 2009?
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 pollution', '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 the topic soil pollution
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 pollution', '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 pollution?
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 pollution', '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 pollution?
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 pollution', '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 pollution, purpose agriculture policy and time span 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 pollution', 'i') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture policy', '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 subject soil pollution, purpose agriculture policy in the 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 pollution', 'i') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture policy', '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')) }
Which are the datasets whose topic is soil pollution and purpose agriculture policy?
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 pollution', 'i') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture 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')) }
Find datasets with topic soil pollution and purpose agriculture policy
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 pollution', 'i') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture 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 natural risk zones datasets have topic land cover, purpose environmental policy, subject natural risk zones and cover time span 2009 - 2009?
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, 'natural risk zones'@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, 'natural risk zones', 'i') ) . } } } union { ?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, 'land cover', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose 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 natural risk zones datasets with topic land cover, purpose environmental policy and temporal extent 2009 - 2009
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, 'natural risk zones'@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, 'natural risk zones', 'i') ) . } } } union { ?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, 'land cover', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose 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 the datasets whose topic is land cover, purpose environmental policy and the subject natural risk zones
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, 'natural risk zones'@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, 'natural risk zones', 'i') ) . } } } union { ?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, 'land cover', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose 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 with subject land cover, purpose environmental policy and cover the theme natural risk zones?
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, 'natural risk zones'@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, 'natural risk zones', 'i') ) . } } } union { ?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, 'land cover', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose 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')) }
Find datasets with topic soil pollution, purpose environmental policy, subject elevation, country coverage vietnam and temporal extent 2009 - 2009
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, 'elevation'@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, 'elevation', 'i') ) . } } } union { ?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 pollution', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i') ) . } } } union { ?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 . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'vietnam'@en, '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')) }
Which are the datasets with topic soil pollution, purpose environmental policy, country coverage vietnam and subject elevation with temporal extent 2009 - 2009?
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, 'elevation'@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, 'elevation', 'i') ) . } } } union { ?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 pollution', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i') ) . } } } union { ?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 . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'vietnam'@en, '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')) }
Which elevation datasets cover topic soil pollution, purpose environmental policy and have country coverage vietnam?
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, 'elevation'@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, 'elevation', 'i') ) . } } } union { ?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 pollution', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i') ) . } } } union { ?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 . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'vietnam'@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 cover topic soil pollution, have purpose environmental policy, subject elevation and country coverage vietnam?
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, 'elevation'@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, 'elevation', 'i') ) . } } } union { ?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 pollution', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i') ) . } } } union { ?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 . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'vietnam'@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 that examine topsoil sample in the period 2006 - 2018?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . { select ?unit where { graph <https://agricore-project.eu/ontology/agricore-dcatap/AnalysisUnitReference> { ?unit ?predicate ?object . } ?unit a agricore:AnalysisUnitReference . ?unit skos:prefLabel ?label . FILTER ( regex(?label, 'topsoil 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 the datasets that analyse topsoil sample
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . { select ?unit where { graph <https://agricore-project.eu/ontology/agricore-dcatap/AnalysisUnitReference> { ?unit ?predicate ?object . } ?unit a agricore:AnalysisUnitReference . ?unit skos:prefLabel ?label . FILTER ( regex(?label, 'topsoil 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 analyse topsoil sample?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . { select ?unit where { graph <https://agricore-project.eu/ontology/agricore-dcatap/AnalysisUnitReference> { ?unit ?predicate ?object . } ?unit a agricore:AnalysisUnitReference . ?unit skos:prefLabel ?label . FILTER ( regex(?label, 'topsoil 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 contain the dataset variable ph in h2o and have temporal extent 2006 - 2018?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''ph in h2o'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'ph in h2o', '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 temporal extent 2006 - 2018 and variable ph in h2o
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''ph in h2o'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'ph in h2o', '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 dataset variable ph in h2o
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''ph in h2o'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'ph in h2o', '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 containing the dataset variable ph in h2o?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''ph in h2o'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'ph in h2o', '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 covering the theme meteorological geographical features in the period 2009 - 2009
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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')) }
Which are the datasets that deal with the theme meteorological geographical features in the period from 2009 to 2009?
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 that deal with the subject meteorological geographical features in the time span from 2009 to 2009
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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')) }
Which datasets deal with the subject meteorological geographical features in the time span 2009 - 2009?
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 that deal with theme meteorological geographical features and subject meteorological geographical features with temporal extent 2009 - 2009
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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')) }
Which are the datasets covering the theme meteorological geographical features and subject meteorological geographical features in the period 2009 - 2009?
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 that cover the theme meteorological geographical features
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 the theme meteorological geographical features?
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 the subject meteorological geographical features?
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 meteorological geographical features
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 meteorological geographical features and theme meteorological geographical features?
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 meteorological geographical features
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 meteorological geographical features datasets that deals with subject meteorological geographical features?
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 meteorological geographical features and theme meteorological geographical features
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 meteorological geographical features
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 meteorological geographical features and subject meteorological geographical features
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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 central african republic and time span 2009 - 2009?
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, 'central african republic'@en, '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 the datasets with geographical coverage central african republic in the period 2009 - 2009?
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, 'central african republic'@en, '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 datasets with country coverage central african republic
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, 'central african republic'@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 central african republic?
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, 'central african republic'@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 central african republic?
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, 'central african republic'@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 oceania 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, oceania@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 oceania 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, oceania@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 oceania 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, oceania@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 2009 - 2009?
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(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 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')) }
Which are the datasets whose topic is soil sample, purpose agriculture policy and time span 2009 - 2009?
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') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture 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 with subject soil sample, purpose agriculture policy in the period 2009 - 2009
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') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture 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')) }
Which are the datasets whose topic is soil sample and purpose agriculture policy?
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') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture 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')) }
Find datasets with topic soil sample and purpose agriculture policy
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') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture 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 government and public sector datasets have topic soil protection, purpose climate change, subject government and public sector and cover time span 2009 - 2009?
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, 'government and public sector'@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, 'government and public sector', 'i') ) . } } } union { ?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 protection', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', '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 government and public sector datasets with topic soil protection, purpose climate change and temporal extent 2009 - 2009
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, 'government and public sector'@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, 'government and public sector', 'i') ) . } } } union { ?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 protection', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', '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 the datasets whose topic is soil protection, purpose climate change and the subject government and public sector
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, 'government and public sector'@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, 'government and public sector', 'i') ) . } } } union { ?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 protection', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', '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 subject soil protection, purpose climate change and cover the theme government and public sector?
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, 'government and public sector'@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, 'government and public sector', 'i') ) . } } } union { ?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 protection', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', '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 datasets with topic land use, purpose climate change, subject human health and safety, country coverage belgium and temporal extent 2006 - 2018
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, 'human health and safety'@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, 'human health and safety', 'i') ) . } } } union { ?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, 'land use', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) . } } } union { ?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 . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'belgium'@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')) }
Which are the datasets with topic land use, purpose climate change, country coverage belgium and subject human health and safety with temporal extent 2006 - 2018?
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, 'human health and safety'@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, 'human health and safety', 'i') ) . } } } union { ?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, 'land use', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) . } } } union { ?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 . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'belgium'@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')) }
Which human health and safety datasets cover topic land use, purpose climate change and have country coverage belgium?
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, 'human health and safety'@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, 'human health and safety', 'i') ) . } } } union { ?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, 'land use', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) . } } } union { ?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 . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'belgium'@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 cover topic land use, have purpose climate change, subject human health and safety and country coverage belgium?
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, 'human health and safety'@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, 'human health and safety', 'i') ) . } } } union { ?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, 'land use', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) . } } } union { ?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 . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'belgium'@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 that examine geo-referenced point in the period 2006 - 2018?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . { select ?unit where { graph <https://agricore-project.eu/ontology/agricore-dcatap/AnalysisUnitReference> { ?unit ?predicate ?object . } ?unit a agricore:AnalysisUnitReference . ?unit skos:prefLabel ?label . FILTER ( regex(?label, 'geo-referenced point', '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 that analyse geo-referenced point
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . { select ?unit where { graph <https://agricore-project.eu/ontology/agricore-dcatap/AnalysisUnitReference> { ?unit ?predicate ?object . } ?unit a agricore:AnalysisUnitReference . ?unit skos:prefLabel ?label . FILTER ( regex(?label, 'geo-referenced point', '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 analyse geo-referenced point?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . { select ?unit where { graph <https://agricore-project.eu/ontology/agricore-dcatap/AnalysisUnitReference> { ?unit ?predicate ?object . } ?unit a agricore:AnalysisUnitReference . ?unit skos:prefLabel ?label . FILTER ( regex(?label, 'geo-referenced point', '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 contain the dataset variable u111 - agriculture (excluding fallow land and kitchen gardens) and have temporal extent 2006 - 2018?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''u111 - agriculture (excluding fallow land and kitchen gardens)'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u111 - agriculture (excluding fallow land and kitchen gardens)', '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 temporal extent 2006 - 2018 and variable u111 - agriculture (excluding fallow land and kitchen gardens)
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''u111 - agriculture (excluding fallow land and kitchen gardens)'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u111 - agriculture (excluding fallow land and kitchen gardens)', '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 dataset variable u111 - agriculture (excluding fallow land and kitchen gardens)
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''u111 - agriculture (excluding fallow land and kitchen gardens)'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u111 - agriculture (excluding fallow land and kitchen gardens)', '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 containing the dataset variable u111 - agriculture (excluding fallow land and kitchen gardens)?
select distinct ?dataset ?startDate ?endDate where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''u111 - agriculture (excluding fallow land and kitchen gardens)'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u111 - agriculture (excluding fallow land and kitchen gardens)', '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 covering the theme government and public sector in the period 2006 - 2018
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, 'government and public sector'@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, 'government and public sector', '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')) }
Which are the datasets that deal with the theme government and public sector in the period from 2006 to 2018?
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, 'government and public sector'@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, 'government and public sector', '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 that deal with the subject government and public sector in the time span from 2006 to 2018
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, 'government and public sector'@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, 'government and public sector', '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')) }
Which datasets deal with the subject government and public sector in the time span 2006 - 2018?
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, 'government and public sector'@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, 'government and public sector', '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 that deal with theme government and public sector and subject government and public sector with temporal extent 2006 - 2018
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, 'government and public sector'@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, 'government and public sector', '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')) }
Which are the datasets covering the theme government and public sector and subject government and public sector in the period 2006 - 2018?
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, 'government and public sector'@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, 'government and public sector', '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 that cover the theme government and public sector
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, 'government and public sector'@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, 'government and public sector', '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 the theme government and public sector?
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, 'government and public sector'@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, 'government and public sector', '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 the subject government and public sector?
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, 'government and public sector'@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, 'government and public sector', '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 government and public sector
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, 'government and public sector'@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, 'government and public sector', '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 government and public sector and theme government and public sector?
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, 'government and public sector'@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, 'government and public sector', '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 government and public sector
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, 'government and public sector'@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, 'government and public sector', '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 government and public sector datasets that deals with subject government and public sector?
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, 'government and public sector'@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, 'government and public sector', '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 government and public sector and theme government and public sector
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, 'government and public sector'@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, 'government and public sector', '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 government and public sector
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, 'government and public sector'@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, 'government and public sector', '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 government and public sector and subject government and public sector
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, 'government and public sector'@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, 'government and public sector', '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 kuwait 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, 'kuwait'@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 kuwait 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, 'kuwait'@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')) }