question
stringlengths 38
244
| sparql
stringlengths 994
2.9k
|
---|---|
Find the datasets with dataset variable u113 - kitchen garden | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''u113 - kitchen garden'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u113 - kitchen garden', 'i') ) } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 u113 - kitchen garden? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''u113 - kitchen garden'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'u113 - kitchen garden', 'i') ) } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 habitats and biotopes in the period 2009 - 2009 | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', '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 habitats and biotopes in the period from 2009 to 2009? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', '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 habitats and biotopes 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 <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', '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 habitats and biotopes in the time span 2009 - 2009? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', '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 habitats and biotopes and subject habitats and biotopes with temporal extent 2009 - 2009 | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', '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 habitats and biotopes and subject habitats and biotopes in the period 2009 - 2009? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', 'i') ) . } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets that cover the theme habitats and biotopes | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 habitats and biotopes? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 habitats and biotopes? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 habitats and biotopes | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 habitats and biotopes and theme habitats and biotopes? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 habitats and biotopes | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 habitats and biotopes datasets that deals with subject habitats and biotopes? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 habitats and biotopes and theme habitats and biotopes | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 habitats and biotopes | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 habitats and biotopes and subject habitats and biotopes | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'habitats and biotopes'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'habitats and biotopes', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 luxembourg and time span 2006 - 2018? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'luxembourg'@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 luxembourg in the period 2006 - 2018? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'luxembourg'@en, 'i')) } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find datasets with country coverage luxembourg | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'luxembourg'@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets with country coverage luxembourg? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'luxembourg'@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 luxembourg? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'luxembourg'@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets have as geographical coverage asia countries and time span 2009 - 2009? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . ?continent skos:prefLabel ?continent_name FILTER ( lang(?continent_name) = 'en') FILTER ( regex(?continent_name, asia@en, 'i')) } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets with asia geographical coverage | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . ?continent skos:prefLabel ?continent_name FILTER ( lang(?continent_name) = 'en') FILTER ( regex(?continent_name, asia@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets have as geographical coverage asia countries? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . ?continent skos:prefLabel ?continent_name FILTER ( lang(?continent_name) = 'en') FILTER ( regex(?continent_name, asia@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets have environmental policy purpose and time span from 2006 to 2018? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i')) . } } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets related to environmental policy | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose purpose is environmental policy? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets are related to environmental policy? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose topic is land use and period 2006 - 2018? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'land use', 'i')) . } } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets related to the topic land use | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'land use', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets cover the topic land use? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'land use', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose topic is land use? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'land use', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose topic is land use, 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 <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'land use', 'i') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) .} } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets with subject land use, 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 <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'land use', 'i') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) .} } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose topic is land use and purpose climate change? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'land use', 'i') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) .} } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 and purpose climate change | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'land use', 'i') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'climate change', 'i') ) .} } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 population and society datasets have topic land use, purpose agriculture policy, subject population and society and cover time span 2009 - 2009? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'population and society'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'population and society', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'land use', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, '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 population and society 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 <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'population and society'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'population and society', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'land use', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, '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 the datasets whose topic is land use, purpose agriculture policy and the subject population and society | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'population and society'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'population and society', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'land use', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, '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 with subject land use, purpose agriculture policy and cover the theme population and society? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'population and society'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'population and society', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'land use', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture policy', 'i') ) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find datasets with topic soil pollution, purpose environmental policy, subject transport networks, country coverage christmas island and temporal extent 2006 - 2018 | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'transport networks'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'transport networks', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil pollution', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i') ) . } } } union { ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'christmas island'@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 pollution, purpose environmental policy, country coverage christmas island and subject transport networks with temporal extent 2006 - 2018? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'transport networks'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'transport networks', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil pollution', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i') ) . } } } union { ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'christmas island'@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 transport networks datasets cover topic soil pollution, purpose environmental policy and have country coverage christmas island? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'transport networks'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'transport networks', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil pollution', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i') ) . } } } union { ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'christmas island'@en, 'i')) } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets cover topic soil pollution, have purpose environmental policy, subject transport networks and country coverage christmas island? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'transport networks'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'transport networks', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil pollution', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i') ) . } } } union { ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'christmas island'@en, 'i')) } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets that examine topsoil sample in the period 2009 - 2009? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . { select ?unit where { graph <https://agricore-project.eu/ontology/agricore-dcatap/AnalysisUnitReference> { ?unit ?predicate ?object . } ?unit a agricore:AnalysisUnitReference . ?unit skos:prefLabel ?label . FILTER ( regex(?label, 'topsoil sample', 'i') ) . } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find the datasets that analyse topsoil sample | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . { select ?unit where { graph <https://agricore-project.eu/ontology/agricore-dcatap/AnalysisUnitReference> { ?unit ?predicate ?object . } ?unit a agricore:AnalysisUnitReference . ?unit skos:prefLabel ?label . FILTER ( regex(?label, 'topsoil sample', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets analyse topsoil sample? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . { select ?unit where { graph <https://agricore-project.eu/ontology/agricore-dcatap/AnalysisUnitReference> { ?unit ?predicate ?object . } ?unit a agricore:AnalysisUnitReference . ?unit skos:prefLabel ?label . FILTER ( regex(?label, 'topsoil sample', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets contain the dataset variable land cover 1 and have temporal extent 2009 - 2009? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''land cover 1'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'land cover 1', 'i') ) } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find the datasets with temporal extent 2009 - 2009 and variable land cover 1 | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''land cover 1'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'land cover 1', 'i') ) } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find the datasets with dataset variable land cover 1 | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''land cover 1'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'land cover 1', 'i') ) } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 land cover 1? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetVariables ?datasetVariable . ?datasetVariable agricore:variableName ?variableName . { FILTER ( regex(str(?variableName), ''land cover 1'', 'i') ) } union { ?datasetVariable agricore:referenceValues ?refValues . FILTER ( regex(str(?refValues), 'land cover 1', 'i') ) } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 economy and finance in the period 2006 - 2018 | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', '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 economy and finance in the period from 2006 to 2018? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', '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 economy and finance 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 <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', '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 economy and finance in the time span 2006 - 2018? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', '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 economy and finance and subject economy and finance with temporal extent 2006 - 2018 | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', '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 economy and finance and subject economy and finance in the period 2006 - 2018? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', 'i') ) . } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets that cover the theme economy and finance | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 economy and finance? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 economy and finance? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 economy and finance | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 economy and finance and theme economy and finance? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 economy and finance | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 economy and finance datasets that deals with subject economy and finance? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 economy and finance and theme economy and finance | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 economy and finance | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 economy and finance and subject economy and finance | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'economy and finance'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'economy and finance', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) 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 panama canal zone and time span 2009 - 2009? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'panama canal zone'@en, 'i')) } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find the datasets with geographical coverage panama canal zone in the period 2009 - 2009? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'panama canal zone'@en, 'i')) } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find datasets with country coverage panama canal zone | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'panama canal zone'@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets with country coverage panama canal zone? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'panama canal zone'@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 panama canal zone? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'panama canal zone'@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets have as geographical coverage antarctica countries and time span 2006 - 2018? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . ?continent skos:prefLabel ?continent_name FILTER ( lang(?continent_name) = 'en') FILTER ( regex(?continent_name, antarctica@en, 'i')) } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets with antarctica geographical coverage | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . ?continent skos:prefLabel ?continent_name FILTER ( lang(?continent_name) = 'en') FILTER ( regex(?continent_name, antarctica@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets have as geographical coverage antarctica countries? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . ?continent skos:prefLabel ?continent_name FILTER ( lang(?continent_name) = 'en') FILTER ( regex(?continent_name, antarctica@en, 'i')) } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets have environmental policy purpose and time span from 2006 to 2018? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i')) . } } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets related to environmental policy | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose purpose is environmental policy? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets are related to environmental policy? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose topic is soil sample and period 2006 - 2018? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil sample', 'i')) . } } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find all datasets related to the topic soil sample | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil sample', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets cover the topic soil sample? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil sample', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose topic is soil sample? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil sample', 'i')) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets whose topic is soil pollution, 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 <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil pollution', 'i') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, '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 pollution, 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 <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil pollution', 'i') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, '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 pollution and purpose climate change? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil pollution', 'i') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, '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 pollution and purpose climate change | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil pollution', 'i') ) . }} union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, '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 coordinate reference systems datasets have topic soil protection, purpose environmental policy, subject coordinate reference systems and cover time span 2009 - 2009? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'coordinate reference systems'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'coordinate reference systems', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil protection', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i') ) . } } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find coordinate reference systems datasets with topic soil protection, purpose environmental policy and temporal extent 2009 - 2009 | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'coordinate reference systems'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'coordinate reference systems', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil protection', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i') ) . } } } BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2009)) > 0, 2009, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find the datasets whose topic is soil protection, purpose environmental policy and the subject coordinate reference systems | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'coordinate reference systems'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'coordinate reference systems', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil protection', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i') ) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which are the datasets with subject soil protection, purpose environmental policy and cover the theme coordinate reference systems? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'coordinate reference systems'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'coordinate reference systems', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil protection', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'environmental policy', 'i') ) . } } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Find datasets with topic soil protection, purpose agriculture policy, subject environment, country coverage panama canal zone and temporal extent 2006 - 2018 | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'environment'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'environment', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil protection', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture policy', 'i') ) . } } } union { ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'panama canal zone'@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 agriculture policy, country coverage panama canal zone and subject environment with temporal extent 2006 - 2018? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'environment'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'environment', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil protection', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture policy', 'i') ) . } } } union { ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'panama canal zone'@en, 'i')) } } } BIND (IF(STRLEN(str(2006)) > 0, 2006, 'NaN') AS ?startParam) BIND (IF(STRLEN(str(2018)) > 0, 2018, 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which environment datasets cover topic soil protection, purpose agriculture policy and have country coverage panama canal zone? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'environment'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'environment', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil protection', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture policy', 'i') ) . } } } union { ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'panama canal zone'@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 agriculture policy, subject environment and country coverage panama canal zone? | select distinct ?dataset where { ?dataset a agricore:Dataset . { ?dataset dcat:theme ?theme . FILTER ( ?theme IN (?subject)) . { SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?subject WHERE { graph <http://publications.europa.eu/resource/authority/data-theme> { ?subject ?predicate ?object . } ?object a skos:Concept . ?subject skos:prefLabel ?label . FILTER ( regex(?label, 'environment'@en, 'i') ) . } } } union { select ?subject where { graph <http://inspire.ec.europa.eu/theme> { ?subject ?predicate ?object . } ?object a <http://purl.org/net/provenance/ns#DataItem> . ?object <http://purl.org/dc/terms/title> ?title . FILTER ( lang(?title) = 'en') FILTER ( regex(?title, 'environment', 'i') ) . } } } union { ?dataset agricore:hasDatasetType ?datasetType . FILTER ( ?datasetType IN (?type)) . { select ?type where { graph <https://agricore-project.eu/ontology/agricore-dcatap/subjects> { ?subject ?predicate ?type . } ?type a skos:Concept . ?type skos:prefLabel ?label . FILTER ( regex(?label, 'soil protection', 'i') ) . } } } union { ?dataset agricore:hasPurpose ?datasetPurpose . FILTER ( ?datasetPurpose IN (?purpose)) . { select ?purpose where { graph <https://agricore-project.eu/ontology/agricore-dcatap/DatasetPurpose> { ?subject ?predicate ?purpose . } ?purpose a agricore:DatasetPurpose . ?purpose skos:prefLabel ?label . FILTER ( regex(?label, 'agriculture policy', 'i') ) . } } } union { ?dataset agricore:hasGeoCoverage ?geozone . FILTER ( ?geozone IN (?country_subject) || ?geozone IN (?cont_subject)) . SERVICE <http://publications.europa.eu/webapi/rdf/sparql> { SELECT ?country_subject ?cont_subject WHERE { graph <http://publications.europa.eu/resource/authority/country> { ?country_subject ?country_predicate skos:Concept . } graph <http://publications.europa.eu/resource/authority/continent> { ?cont_subject ?cont_predicate skos:Concept . } ?country_subject skos:prefLabel ?country_name . ?country_subject ogcgs:sfWithin ?continent . FILTER ( lang(?country_name) = 'en') FILTER ( regex(?country_name, 'panama canal zone'@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 <https://agricore-project.eu/ontology/agricore-dcatap/AnalysisUnitReference> { ?unit ?predicate ?object . } ?unit a agricore:AnalysisUnitReference . ?unit skos:prefLabel ?label . FILTER ( regex(?label, 'geo-referenced point', 'i') ) . } } BIND (IF(STRLEN(str(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 <https://agricore-project.eu/ontology/agricore-dcatap/AnalysisUnitReference> { ?unit ?predicate ?object . } ?unit a agricore:AnalysisUnitReference . ?unit skos:prefLabel ?label . FILTER ( regex(?label, 'geo-referenced point', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Which datasets analyse geo-referenced point? | select distinct ?dataset where { ?dataset a agricore:Dataset . ?dataset agricore:hasAnalysisUnit ?analysisUnit . ?analysisUnit agricore:hasUnitReference ?unitReference . FILTER ( ?unitReference IN (?unit)) . { select ?unit where { graph <https://agricore-project.eu/ontology/agricore-dcatap/AnalysisUnitReference> { ?unit ?predicate ?object . } ?unit a agricore:AnalysisUnitReference . ?unit skos:prefLabel ?label . FILTER ( regex(?label, 'geo-referenced point', 'i') ) . } } BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?startParam) BIND (IF(STRLEN(str('')) > 0, '', 'NaN') AS ?endParam) OPTIONAL { ?dataset terms:temporal ?dateRange . ?dateRange a terms:PeriodOfTime . ?dateRange dcat:startDate ?startDate . ?dateRange dcat:endDate ?endDate . BIND (IF(?startParam <= year(?startDate), year(?startDate), ?startParam) AS ?max_start_date) BIND (IF(?endParam <= year(?endDate), ?endParam, year(?endDate)) AS ?min_end_date) FILTER (isNumeric(?startParam) && ?max_start_date <= year(?endDate) && isNumeric(?endParam) && ?min_end_date >= year(?startDate)) . } FILTER ((bound(?startDate) || ?startParam ='NaN') && (bound(?endDate) || ?endParam = 'NaN')) } |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.