question
stringlengths 38
244
| sparql
stringlengths 994
2.9k
|
---|---|
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 protection, purpose climate change 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 protection', 'i') ) . }} union {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . {select ?purpose where {graph PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) .} } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets with subject soil protection, purpose climate change 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 protection', 'i') ) . }} union {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . {select ?purpose where {graph PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) .} } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose topic is soil protection and purpose climate change? | 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 protection', 'i') ) . }} union {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . {select ?purpose where {graph PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) .} } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find datasets with topic soil protection and purpose climate change | 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 protection', 'i') ) . }} union {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . {select ?purpose where {graph PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) .} } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which meteorological geographical features datasets have topic soil pollution, purpose agriculture policy, subject meteorological geographical features 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, 'meteorological geographical features'@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, 'meteorological geographical features', '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(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 meteorological geographical features datasets with topic soil pollution, 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, 'meteorological geographical features'@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, 'meteorological geographical features', '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(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 pollution, purpose agriculture policy and cover the theme meteorological geographical features? | 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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 meteorological geographical features | 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, 'meteorological geographical features'@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, 'meteorological geographical features', '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 soil protection, purpose climate change, subject energy, country coverage panama 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, 'energy'@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, 'energy', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil protection', 'i') ) . } } } union {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . {select ?purpose where {graph PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', '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, 'panama'@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 soil protection, purpose climate change, country coverage panama and subject energy 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, 'energy'@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, 'energy', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil protection', 'i') ) . } } } union {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . {select ?purpose where {graph PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', '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, 'panama'@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 energy datasets cover topic soil protection, purpose climate change and have country coverage panama? | 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, 'energy'@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, 'energy', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil protection', 'i') ) . } } } union {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . {select ?purpose where {graph PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', '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, 'panama'@en, 'i')) } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets cover topic soil protection, have purpose climate change, subject energy and country coverage panama? | 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, 'energy'@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, 'energy', 'i') ) . } } } union {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil protection', 'i') ) . } } } union {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . {select ?purpose where {graph PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', '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, 'panama'@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 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, 'geo-referenced point', '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 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 u120 - forestry and have temporal extent 2006 - 2018? | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'u120 - forestry', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u120 - forestry', 'i') ) } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find the datasets with temporal extent 2006 - 2018 and variable u120 - forestry | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'u120 - forestry', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u120 - forestry', '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 containing the dataset variable u120 - forestry? | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'u120 - forestry', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u120 - forestry', '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 u120 - forestry | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'u120 - forestry', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u120 - forestry', '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 geographical grid systems in the period 2009 - 2009 | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'geographical grid systems'@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, 'geographical grid systems', 'i') ) . } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets that deal with the theme geographical grid systems in the period from 2009 to 2009? | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'geographical grid systems'@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, 'geographical grid systems', 'i') ) . } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets that deal with the subject geographical grid systems in the time span from 2009 to 2009 | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'geographical grid systems'@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, 'geographical grid systems', 'i') ) . } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets deal with the subject geographical grid systems in the time span 2009 - 2009? | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'geographical grid systems'@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, 'geographical grid systems', 'i') ) . } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets that deal with theme geographical grid systems and subject geographical grid systems 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, 'geographical grid systems'@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, 'geographical grid systems', 'i') ) . } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets covering the theme geographical grid systems and subject geographical grid systems in the period 2009 - 2009? | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . {SERVICE SPARQL_ENDPOINT {SELECT ?subject WHERE {graph EU_AUTH_THEME_GRAPH {?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'geographical grid systems'@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, 'geographical grid systems', 'i') ) . } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets that cover the theme geographical grid systems? | 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, 'geographical grid systems'@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, 'geographical grid systems', '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 geographical grid systems | 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, 'geographical grid systems'@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, 'geographical grid systems', '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 geographical grid systems | 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, 'geographical grid systems'@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, 'geographical grid systems', '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 geographical grid systems and theme geographical grid systems | 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, 'geographical grid systems'@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, 'geographical grid systems', '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 geographical grid systems? | 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, 'geographical grid systems'@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, 'geographical grid systems', '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 geographical grid systems | 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, 'geographical grid systems'@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, 'geographical grid systems', '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 geographical grid systems and subject geographical grid systems | 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, 'geographical grid systems'@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, 'geographical grid systems', '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 geographical grid systems datasets that deals with subject geographical grid systems? | 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, 'geographical grid systems'@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, 'geographical grid systems', '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 geographical grid systems and theme geographical grid systems? | 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, 'geographical grid systems'@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, 'geographical grid systems', '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 geographical grid systems | 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, 'geographical grid systems'@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, 'geographical grid systems', '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 bangladesh 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, 'bangladesh'@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 bangladesh 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, 'bangladesh'@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 bangladesh? | 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, 'bangladesh'@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 bangladesh? | 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, 'bangladesh'@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 bangladesh | 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, 'bangladesh'@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 africa 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, 'africa'@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 africa 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, 'africa'@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 africa 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, 'africa'@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 climate change 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, 'climate change', '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 climate change | 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, 'climate change', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets are related to climate change? | 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, 'climate change', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose purpose is climate change? | 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, 'climate change', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose topic is soil pollution and period 2009 - 2009? | select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil pollution', 'i')) . } } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets related to the topic soil pollution | select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil pollution', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose topic is soil pollution? | select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil pollution', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets cover the topic soil pollution? | select distinct ?dataset where {?dataset a agricore:Dataset . {?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil pollution', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose topic is soil sample, purpose climate change and time span 2006 - 2018? | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, '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, 'climate change', 'i') ) .} } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets with subject soil sample, purpose climate change in the period 2006 - 2018 | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, '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, 'climate change', 'i') ) .} } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose topic is soil sample and purpose climate change? | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil sample', 'i') ) . }} union {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . {select ?purpose where {graph PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) .} } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find datasets with topic soil sample and purpose climate change | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . {select ?type where {graph SUBJECT_GRAPH {?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil sample', 'i') ) . }} union {?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . {select ?purpose where {graph PURPOSE_GRAPH {?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) .} } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which government and public sector datasets have topic land use, purpose agriculture policy, subject government and public sector 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, 'government and public sector'@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, 'government and public sector', '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, '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 government and public sector datasets with topic land use, 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, 'government and public sector'@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, 'government and public sector', '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, '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 land use, purpose agriculture policy and cover the theme government and public sector? | 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, 'government and public sector'@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, 'government and public sector', '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, '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 land use, purpose agriculture policy and the subject government and public sector | 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, 'government and public sector'@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, 'government and public sector', '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, '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 provisional data, country coverage falkland islands 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, 'provisional data'@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, 'provisional data', '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, 'falkland islands'@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 falkland islands and subject provisional data 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, 'provisional data'@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, 'provisional data', '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, 'falkland islands'@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 provisional data datasets cover topic land use, purpose environmental policy and have country coverage falkland islands? | 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, 'provisional data'@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, 'provisional data', '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, 'falkland islands'@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 provisional data and country coverage falkland islands? | 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, 'provisional data'@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, 'provisional data', '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, 'falkland islands'@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 phosphorous content and have temporal extent 2006 - 2018? | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'phosphorous content', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'phosphorous content', 'i') ) } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find the datasets with temporal extent 2006 - 2018 and variable phosphorous content | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'phosphorous content', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'phosphorous content', 'i') ) } BIND (IF(STRLEN(str(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 containing the dataset variable phosphorous content? | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'phosphorous content', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'phosphorous content', 'i') ) } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find the datasets with dataset variable phosphorous content | select distinct ?dataset where {?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . {FILTER ( regex(str(?variableName), 'phosphorous content', 'i') ) } union {?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'phosphorous content', 'i') ) } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL {?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets covering the theme energy 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, 'energy 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, 'energy 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 energy 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, 'energy 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, 'energy 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 energy 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, 'energy 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, 'energy 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 energy 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, 'energy 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, 'energy 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 energy resources and subject energy 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, 'energy 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, 'energy 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 energy resources and subject energy 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, 'energy 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, 'energy 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 energy 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, 'energy 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, 'energy 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 energy 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, 'energy 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, 'energy 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 energy 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, 'energy 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, 'energy 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 energy resources and theme energy 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, 'energy 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, 'energy 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 energy 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, 'energy 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, 'energy 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 energy 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, 'energy 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, 'energy 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 energy resources and subject energy 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, 'energy 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, 'energy 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 energy resources datasets that deals with subject energy 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, 'energy 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, 'energy 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 energy resources and theme energy 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, 'energy 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, 'energy 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 energy 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, 'energy 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, 'energy 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 cook islands 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, 'cook islands'@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 cook islands 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, 'cook islands'@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 cook islands? | 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, 'cook islands'@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 cook islands? | 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, 'cook islands'@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 cook islands | 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, 'cook islands'@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 provisional data 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, 'provisional data'@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 provisional data 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, 'provisional data'@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 provisional data 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, 'provisional data'@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')) } |