-
Notifications
You must be signed in to change notification settings - Fork 2
language fall back problem #128
Copy link
Copy link
Open
Description
Language fall back does work properly:
- When
:schema-label-language enand dataset label = no language
The query return no results:
{cubiql{
datasets {
title
uri
}
}}
The SPARQL produced is:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX dcterms: <http://purl.org/dc/terms/>
SELECT ?ds ?name ?title ?description ?licence ?issued ?modified ?publisher WHERE {
{ SELECT DISTINCT ?ds WHERE { ?ds a qb:DataSet .} }
?ds <http://www.w3.org/2000/01/rdf-schema#label> ?name .
FILTER(LANG(?name) = "en")}
- When
:schema-label-language enand measureProperty language = en
The query return no label for measures although there is a label with@en
{cubiql{
dataset_employment {
measures {
enum_name
label
uri
}
}}}
The result is:
{
"data": {
"cubiql": {
"dataset_employment": {
"measures": [
{
"enum_name": "COUNT",
"label": null,
"uri": "http://statistics.gov.scot/def/measure/count"
}
]
}
}
}
}
The SPARQL created is:
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?mt ?label WHERE {
<http://statistics.gov.scot/data/employment> qb:structure ?struct .
?struct qb:component ?comp .
?comp qb:measure ?mt .
?mt a qb:MeasureProperty .
OPTIONAL {
?mt <http://www.w3.org/2000/01/rdf-schema#label> ?label .
FILTER(LANG(?label) = "") }}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels