question
stringlengths
38
244
sparql
stringlengths
994
2.9k
Which are the datasets whose topic is land use and 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 use', 'i')) . } } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find all datasets related to the topic land use
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 use', '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 land use?
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 use', '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 land use?
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 use', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which are the datasets whose topic is soil pollution, purpose environmental 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 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') ) .} } } 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 pollution, purpose environmental 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 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') ) .} } } 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 pollution 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, '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') ) .} } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find datasets with topic soil pollution and purpose 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, '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') ) .} } } 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 habitats and biotopes datasets have topic soil pollution, purpose agriculture policy, subject habitats and biotopes 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, 'habitats and biotopes'@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, 'habitats and biotopes', '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, '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 habitats and biotopes datasets with topic soil pollution, 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, 'habitats and biotopes'@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, 'habitats and biotopes', '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, '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 pollution, purpose agriculture policy and cover the theme habitats and biotopes?
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, 'habitats and biotopes'@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, 'habitats and biotopes', '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, '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 pollution, purpose agriculture policy and the subject habitats and biotopes
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, 'habitats and biotopes'@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, 'habitats and biotopes', '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, '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 land cover, purpose environmental policy, subject environment, country coverage iran 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, 'environment'@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, 'environment', '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, '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, 'iran'@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 environmental policy, country coverage iran and subject environment 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, 'environment'@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, 'environment', '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, '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, 'iran'@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 environment datasets cover topic land cover, purpose environmental policy and have country coverage iran?
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, 'environment'@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, 'environment', '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, '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, 'iran'@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 environmental policy, subject environment and country coverage iran?
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, 'environment'@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, 'environment', '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, '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, 'iran'@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 u130 - aquaculture and fishing 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), 'u130 - aquaculture and fishing', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u130 - aquaculture and fishing', '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 u130 - aquaculture and fishing
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'u130 - aquaculture and fishing', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u130 - aquaculture and fishing', '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 u130 - aquaculture and fishing?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'u130 - aquaculture and fishing', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u130 - aquaculture and fishing', '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 u130 - aquaculture and fishing
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'u130 - aquaculture and fishing', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u130 - aquaculture and fishing', '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 mineral resources 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, 'mineral resources'@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, 'mineral resources', '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 mineral resources 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, 'mineral resources'@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, 'mineral resources', '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 mineral resources 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, 'mineral resources'@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, 'mineral resources', '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 mineral resources 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, 'mineral resources'@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, 'mineral resources', '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 mineral resources and subject mineral resources 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, 'mineral resources'@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, 'mineral resources', '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 mineral resources and subject mineral resources 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, 'mineral resources'@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, 'mineral resources', '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 mineral resources?
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, 'mineral resources'@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, 'mineral resources', '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 mineral resources
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, 'mineral resources'@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, 'mineral resources', '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 mineral resources
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, 'mineral resources'@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, 'mineral resources', '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 mineral resources and theme mineral resources
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, 'mineral resources'@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, 'mineral resources', '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 mineral resources?
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, 'mineral resources'@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, 'mineral resources', '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 mineral resources
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, 'mineral resources'@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, 'mineral resources', '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 mineral resources and subject mineral resources
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, 'mineral resources'@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, 'mineral resources', '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 mineral resources datasets that deals with subject mineral resources?
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, 'mineral resources'@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, 'mineral resources', '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 mineral resources and theme mineral resources?
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, 'mineral resources'@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, 'mineral resources', '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 mineral resources
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, 'mineral resources'@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, 'mineral resources', '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 belarus 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, 'belarus'@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 belarus 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, 'belarus'@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 belarus?
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, 'belarus'@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 belarus?
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, 'belarus'@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 belarus
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, 'belarus'@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 asia 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, 'asia'@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 asia 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, 'asia'@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 asia 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, 'asia'@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which datasets have agriculture policy purpose and time span from 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, '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 related to agriculture 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, 'agriculture policy', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which datasets are related to agriculture policy?
select distinct ?dataset 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, 'agriculture policy', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which are the datasets whose purpose is agriculture policy?
select distinct ?dataset 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, 'agriculture policy', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which are the datasets whose topic is soil pollution and period 2009 - 2009?
select distinct ?dataset 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 pollution, purpose environmental 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 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') ) .} } } 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 pollution, purpose environmental 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 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') ) .} } } 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 pollution 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, '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') ) .} } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find datasets with topic soil pollution and purpose 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, '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') ) .} } } 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 justice, legal system and public safety datasets have topic soil sample, purpose agriculture policy, subject justice, legal system and public safety and cover 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, 'justice, legal system and public 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, 'justice, legal system and public 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 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 justice, legal system and public safety datasets with topic soil sample, purpose agriculture policy 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, 'justice, legal system and public 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, 'justice, legal system and public 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 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 with subject soil sample, purpose agriculture policy and cover the theme justice, legal system and public 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, 'justice, legal system and public 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, 'justice, legal system and public 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 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 the datasets whose topic is soil sample, purpose agriculture policy and the subject justice, legal system and public 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, 'justice, legal system and public 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, 'justice, legal system and public 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 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 land use, purpose environmental policy, subject justice, legal system and public safety, country coverage philippines 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, 'justice, legal system and public 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, 'justice, legal system and public 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, 'land use', '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, 'philippines'@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 land use, purpose environmental policy, country coverage philippines and subject justice, legal system and public safety 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, 'justice, legal system and public 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, 'justice, legal system and public 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, 'land use', '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, 'philippines'@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 justice, legal system and public safety datasets cover topic land use, purpose environmental policy and have country coverage philippines?
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, 'justice, legal system and public 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, 'justice, legal system and public 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, 'land use', '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, 'philippines'@en, 'i')) } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which datasets cover topic land use, have purpose environmental policy, subject justice, legal system and public safety and country coverage philippines?
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, 'justice, legal system and public 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, 'justice, legal system and public 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, 'land use', '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, 'philippines'@en, 'i')) } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which are the datasets that examine geo-referenced point in the period 2006 - 2018?
select distinct ?dataset 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, 'geo-referenced point', 'i') ) . } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find the datasets that analyse geo-referenced point
select distinct ?dataset 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, 'geo-referenced point', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which datasets analyse geo-referenced point?
select distinct ?dataset 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, 'geo-referenced point', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Which datasets contain the dataset variable u111 - agriculture (excluding fallow land and kitchen gardens) and have temporal extent 2009 - 2009?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'u111 - agriculture (excluding fallow land and kitchen gardens)', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u111 - agriculture (excluding fallow land and kitchen gardens)', 'i') ) } BIND (IF(STRLEN(str(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 u111 - agriculture (excluding fallow land and kitchen gardens)
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'u111 - agriculture (excluding fallow land and kitchen gardens)', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u111 - agriculture (excluding fallow land and kitchen gardens)', 'i') ) } BIND (IF(STRLEN(str(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 u111 - agriculture (excluding fallow land and kitchen gardens)?
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'u111 - agriculture (excluding fallow land and kitchen gardens)', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u111 - agriculture (excluding fallow land and kitchen gardens)', 'i') ) } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find the datasets with dataset variable u111 - agriculture (excluding fallow land and kitchen gardens)
select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'u111 - agriculture (excluding fallow land and kitchen gardens)', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u111 - agriculture (excluding fallow land and kitchen gardens)', 'i') ) } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find all datasets covering the theme hydrography 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, 'hydrography'@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, 'hydrography', '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 hydrography 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, 'hydrography'@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, 'hydrography', '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 hydrography 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, 'hydrography'@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, 'hydrography', '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 hydrography 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, 'hydrography'@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, 'hydrography', '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 hydrography and subject hydrography 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, 'hydrography'@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, 'hydrography', '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 hydrography and subject hydrography 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, 'hydrography'@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, 'hydrography', '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 hydrography?
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, 'hydrography'@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, 'hydrography', '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 hydrography
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, 'hydrography'@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, 'hydrography', '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 hydrography
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, 'hydrography'@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, 'hydrography', '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 hydrography and theme hydrography
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, 'hydrography'@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, 'hydrography', '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 hydrography?
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, 'hydrography'@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, 'hydrography', '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 hydrography
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, 'hydrography'@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, 'hydrography', '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 hydrography and subject hydrography
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, 'hydrography'@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, 'hydrography', '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 hydrography datasets that deals with subject hydrography?
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, 'hydrography'@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, 'hydrography', '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 hydrography and theme hydrography?
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, 'hydrography'@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, 'hydrography', '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 hydrography
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, 'hydrography'@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, 'hydrography', '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 north korea 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, 'north korea'@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 north korea 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, 'north korea'@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 north korea?
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, 'north korea'@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 north korea?
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, 'north korea'@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 north korea
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, 'north korea'@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 agriculture 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, 'agriculture policy', 'i')) . } } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) }
Find all datasets related to agriculture policy
select distinct ?dataset 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, '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')) }