You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.
The \Drupal\rdf_taxonomy\TermRdfStorage::loadTree method is using the following hardcoded query to load the terms:
SELECT DISTINCT ?tid ?label ?parent
WHERE {
?tid ?relation <$concept_schema> .
?tid <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
?tid <http://www.w3.org/2004/02/skos/core#prefLabel> ?label .
FILTER (?relation IN (<http://www.w3.org/2004/02/skos/core#inScheme>, <http://www.w3.org/2004/02/skos/core#topConceptOf>) ) .
FILTER (lang(?label) = 'en') .
OPTIONAL {?tid <http://www.w3.org/2004/02/skos/core#broaderTransitive> ?parent }
}
ORDER BY (STR(?label))
Now that the mapping entities are in place, the predicate (the ?relation variable) can be predictable and the rest of the properties are not restricted. The terms don't need to use the http://www.w3.org/2004/02/skos/core#broaderTransitive to designate the parent.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The
\Drupal\rdf_taxonomy\TermRdfStorage::loadTree
method is using the following hardcoded query to load the terms:Now that the mapping entities are in place, the predicate (the
?relation
variable) can be predictable and the rest of the properties are not restricted. The terms don't need to use thehttp://www.w3.org/2004/02/skos/core#broaderTransitive
to designate the parent.The text was updated successfully, but these errors were encountered: