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
The data I am working on uses both skos:member and isothes:subGroup to create the group hierarchy, this may be the cause of the problem.
Similarly, groups are declared with both a skos:Collection type, an isothes:ConceptGroup type, and possibly a third class - subclass of isothes:ConceptGroup :
A DISTINCT is probably needed in the query that retrieves subgroups.
I am using v1.3-maintenance branch.
The text was updated successfully, but these errors were encountered:
Problem lies in listConceptGroups methods, the ?children variable contains duplicated children because it relies on both skos:member and isothes:subGroup :
SELECT ?group (GROUP_CONCAT(STR(?child)) as ?children) ?label ?members ?notation
WHERE {
$gc {
?group a <$groupClass> .
OPTIONAL { ?group skos:member|isothes:subGroup ?child .
?child a <$groupClass> }
BIND(EXISTS{?group skos:member ?submembers} as ?members)
OPTIONAL { ?group skos:prefLabel ?label }
OPTIONAL { ?group rdfs:label ?label }
FILTER (langMatches(lang(?label), '$lang'))
OPTIONAL { ?group skos:notation ?notation }
}
}
GROUP BY ?group ?label ?members ?notation
ORDER BY lcase(?label)
Could the property to be used be externalised in the vocabularies config file, just like the group class is ?
Hello
I have duplicated groups in the group hierarchy :
The data I am working on uses both skos:member and isothes:subGroup to create the group hierarchy, this may be the cause of the problem.
Similarly, groups are declared with both a skos:Collection type, an isothes:ConceptGroup type, and possibly a third class - subclass of isothes:ConceptGroup :
A DISTINCT is probably needed in the query that retrieves subgroups.
I am using v1.3-maintenance branch.
The text was updated successfully, but these errors were encountered: