Skip to content

Commit

Permalink
optimizing the queryTypes transitive subClassOf relations query, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
henriyli committed Sep 17, 2015
1 parent 3115f6f commit 123c4e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions model/sparql/GenericSparql.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,13 @@ public function queryTypes($lang)
WHERE {
$gc {
{
{ ?type rdfs:subClassOf* skos:Concept . }
{ BIND( skos:Concept as ?type ) }
UNION
{ ?type rdfs:subClassOf* skos:Collection . }
{ BIND( skos:Collection as ?type ) }
UNION
{ ?type rdfs:subClassOf/rdfs:subClassOf* skos:Concept . }
UNION
{ ?type rdfs:subClassOf/rdfs:subClassOf* skos:Collection . }
}
OPTIONAL {
?type rdfs:label ?label .
Expand Down

0 comments on commit 123c4e9

Please sign in to comment.