question
stringlengths
38
244
sparql
stringlengths
994
2.9k
Which are the datasets whose topic is land cover, purpose environmental policy and time span 2006 - 2018?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental 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 land cover, purpose environmental policy in the period 2006 - 2018
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental 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 land cover and purpose environmental policy?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 land cover and purpose environmental policy
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 human health and safety datasets have topic soil protection, purpose agriculture policy, subject human health and safety and cover time span 2006 - 2018?
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object 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 SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 human health and safety datasets with topic soil protection, purpose agriculture policy and temporal extent 2006 - 2018
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object 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 SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 with subject soil protection, purpose agriculture policy and cover the theme human health and safety?
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object 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 SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 the datasets whose topic is soil protection, purpose agriculture policy and the subject human health and safety
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object 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 SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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, purpose environmental policy, subject production and industrial facilities, country coverage south sudan and temporal extent 2009 - 2009
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'production and industrial facilities'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'production and industrial facilities', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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, 'south sudan'@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 south sudan and subject production and industrial facilities with temporal extent 2009 - 2009?
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'production and industrial facilities'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'production and industrial facilities', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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, 'south sudan'@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 production and industrial facilities datasets cover topic soil pollution, purpose environmental policy and have country coverage south sudan?
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'production and industrial facilities'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'production and industrial facilities', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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, 'south sudan'@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 production and industrial facilities and country coverage south sudan?
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'production and industrial facilities'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'production and industrial facilities', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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, 'south sudan'@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 where {?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . {select ?unit where {graph ANALYSIS_UNIT_REF_GRAPH {?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 where {?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . {select ?unit where {graph ANALYSIS_UNIT_REF_GRAPH {?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 where {?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . {select ?unit where {graph ANALYSIS_UNIT_REF_GRAPH {?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 cacl2 and have temporal extent 2009 - 2009?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'ph in cacl2', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'ph in cacl2', '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 temporal extent 2009 - 2009 and variable ph in cacl2
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'ph in cacl2', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'ph in cacl2', '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 containing the dataset variable ph in cacl2?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'ph in cacl2', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'ph in cacl2', '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 the datasets with dataset variable ph in cacl2
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'ph in cacl2', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'ph in cacl2', '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 human health and safety in the period 2006 - 2018
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 human health and safety in the period from 2006 to 2018?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 human health and safety in the time span from 2006 to 2018
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 human health and safety in the time span 2006 - 2018?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 human health and safety and subject human health and safety with temporal extent 2006 - 2018
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 human health and safety and subject human health and safety in the period 2006 - 2018?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 cover the theme human health and safety?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 theme human health and safety
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 human health and safety
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 human health and safety and theme human health and safety
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 human health and safety?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 human health and safety
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 human health and safety and subject human health and safety
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 human health and safety datasets that deals with subject human health and safety?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 human health and safety and theme human health and safety?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 human health and safety
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?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 EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'human health and safety', '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 micronesia and time span 2006 - 2018?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'micronesia'@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 micronesia in the period 2006 - 2018?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'micronesia'@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 country coverage micronesia?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'micronesia'@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 micronesia?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'micronesia'@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')) }
Find datasets with country coverage micronesia
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'micronesia'@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 where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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')) }
Which datasets have as geographical coverage oceania countries?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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')) }
Find all datasets with oceania geographical coverage
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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 2006 to 2018?
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . {select ?type where {graph PURPOSE_GRAPH {?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'environmental 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 environmental policy
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . {select ?type where {graph PURPOSE_GRAPH {?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 where {?dataset a agricore:Dataset . {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . {select ?type where {graph PURPOSE_GRAPH {?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 where {?dataset a agricore:Dataset . {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . {select ?type where {graph PURPOSE_GRAPH {?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 pollution and period 2009 - 2009?
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 where {?dataset a agricore:Dataset . {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 where {?dataset a agricore:Dataset . {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 where {?dataset a agricore:Dataset . {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 sample, purpose agriculture policy and time span 2009 - 2009?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 administrative units datasets have topic soil sample, purpose environmental policy, subject administrative units and cover time span 2006 - 2018?
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'administrative units'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'administrative units', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental 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 administrative units datasets with topic soil sample, purpose environmental policy and temporal extent 2006 - 2018
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'administrative units'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'administrative units', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental 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 with subject soil sample, purpose environmental policy and cover the theme administrative units?
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'administrative units'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'administrative units', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 the datasets whose topic is soil sample, purpose environmental policy and the subject administrative units
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'administrative units'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'administrative units', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?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 land cover, purpose agriculture policy, subject area management/restriction/regulation zones and reporting units, country coverage east timor and temporal extent 2006 - 2018
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'area management/restriction/regulation zones and reporting units'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'area management/restriction/regulation zones and reporting units', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture policy', 'i') ) . } } } union {?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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, 'east timor'@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 cover, purpose agriculture policy, country coverage east timor and subject area management/restriction/regulation zones and reporting units with temporal extent 2006 - 2018?
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'area management/restriction/regulation zones and reporting units'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'area management/restriction/regulation zones and reporting units', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture policy', 'i') ) . } } } union {?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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, 'east timor'@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 area management/restriction/regulation zones and reporting units datasets cover topic land cover, purpose agriculture policy and have country coverage east timor?
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'area management/restriction/regulation zones and reporting units'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'area management/restriction/regulation zones and reporting units', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture policy', 'i') ) . } } } union {?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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, 'east timor'@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 cover, have purpose agriculture policy, subject area management/restriction/regulation zones and reporting units and country coverage east timor?
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'area management/restriction/regulation zones and reporting units'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'area management/restriction/regulation zones and reporting units', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture policy', 'i') ) . } } } union {?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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, 'east timor'@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 2009 - 2009?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . {select ?unit where {graph ANALYSIS_UNIT_REF_GRAPH {?unit ?predicate ?object . } ?unit a agricore:AnalysisUnitReference . ?unit skos:prefLabel ?label . FILTER ( regex(?label, 'topsoil 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 the datasets that analyse topsoil sample
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . {select ?unit where {graph ANALYSIS_UNIT_REF_GRAPH {?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 where {?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . {select ?unit where {graph ANALYSIS_UNIT_REF_GRAPH {?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 phosphorous content and have temporal extent 2009 - 2009?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'phosphorous content', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'phosphorous content', '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 temporal extent 2009 - 2009 and variable phosphorous content
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'phosphorous content', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'phosphorous content', '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 containing the dataset variable phosphorous content?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'phosphorous content', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'phosphorous content', '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 the datasets with dataset variable phosphorous content
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'phosphorous content', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'phosphorous content', '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 orthoimagery in the period 2009 - 2009
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 orthoimagery in the period from 2009 to 2009?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 orthoimagery in the time span from 2009 to 2009
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 orthoimagery in the time span 2009 - 2009?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 orthoimagery and subject orthoimagery with temporal extent 2009 - 2009
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 orthoimagery and subject orthoimagery in the period 2009 - 2009?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 cover the theme orthoimagery?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 theme orthoimagery
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 orthoimagery
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 orthoimagery and theme orthoimagery
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 orthoimagery?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 orthoimagery
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 orthoimagery and subject orthoimagery
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 orthoimagery datasets that deals with subject orthoimagery?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 orthoimagery and theme orthoimagery?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 orthoimagery
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'orthoimagery'@en, 'i') ) . } } } union {select ?subject where {graph EU_INSPIRE_THEME_GRAPH {?subject ?predicate ?object . } ?object a prov:DataItem . ?object terms:title ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'orthoimagery', '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 papua new guinea and time span 2006 - 2018?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'papua new guinea'@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 papua new guinea in the period 2006 - 2018?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'papua new guinea'@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 country coverage papua new guinea?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'papua new guinea'@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 papua new guinea?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'papua new guinea'@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')) }
Find datasets with country coverage papua new guinea
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'papua new guinea'@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 america countries and time span 2009 - 2009?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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, 'america'@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 datasets have as geographical coverage america countries?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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, 'america'@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')) }
Find all datasets with america geographical coverage
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE SPARQL_ENDPOINT {SELECT ?country_subject ?cont_subject WHERE {graph COUNTRY_GRAPH {?country_subject ?country_predicate skos:Concept . } graph CONTINENT_GRAPH {?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, 'america'@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 where {?dataset a agricore:Dataset . {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . {select ?type where {graph PURPOSE_GRAPH {?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 where {?dataset a agricore:Dataset . {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . {select ?type where {graph PURPOSE_GRAPH {?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 where {?dataset a agricore:Dataset . {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . {select ?type where {graph PURPOSE_GRAPH {?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 where {?dataset a agricore:Dataset . {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . {select ?type where {graph PURPOSE_GRAPH {?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 pollution and period 2009 - 2009?
select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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 where {?dataset a agricore:Dataset . {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?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')) }