query-a684d57d24a64646edeab1f5e32ead6e

rq turtle/ttl

).contribs • talk (197.117.79.201 comment was added byunsignedThe preceding – > creates a cycle by poiting to itself. Can you make it as a root ?https://www.wikidata.org/wiki/Q35120a QueryTimeoutException is firing, because the entity "Entity" <11:56, 6 October 2015 (UTC)) talk (Galaktos. So where’s the problem? —fixed, and that has already been created the cycle yourselfI don’t understand what your problem is… you (or at least, the same IP) 12:11, 6 October 2015 (UTC)) talk (Jheald timing out. isAnd yet the query 12:08, 6 October 2015 (UTC)) talk (JhealdIt doesn't matter if some of the paths are loops, because such loops will get to the point where they do not add any new nodes that have not yet been visited, and will then be considered done. In a query like the one above, the engine will keep trying to add another P279 step to the graph until no new nodes are visited that have not already been visited. It will then return the results. Cycles should not be able to cause path queries to get stuck in infinite loops.The query ought to be returning the following )query (Properties suggested for this class)query (List of most frequent properties for items of this class )query (List of instances )query (Count of instances by class )query (Number of instances List of direct subclassesList of subclasses)query (Number of subclasses Generic queries for classes (depth=1)⟩ on wikidata tree visualisation (external tool)industry⟨ Subclasses (classes which contain special kinds of items of this class) ⊸ (Q35120)entity (Q99527517)collective entity (Q16887380)group (Q268592)industry Parent classes (classes of items which contain this one item) .Wikidata:ClassificationFor help about classification, see  (Q268592)industry Classification of the class )query (Properties suggested for this class)query (List of most frequent properties for items of this class )query (List of instances )query (Count of instances by class )query (Number of instances List of direct subclassesList of subclasses)query (Number of subclasses Generic queries for classes (depth=1)⟩ on wikidata tree visualisation (external tool)broadcasting⟨ Subclasses (classes which contain special kinds of items of this class) ⊸ (Q35120)entity (Q7048977)abstract entity (%)→(Q937228)property (Q930933)relation … (Q488383)object (Q58415929)spatio-temporal entity (Q67518978)occurrent (#)→(Q1190554)occurrence (Q4026292)action (Q111931734)effect (Q52948)interaction →(#) (Q67518978)occurrent (Q1150070)change (Q125506646)transfer (+)→(Q6031064)information exchange (Q11024)communication →(%) (Q7048977)abstract entity … (Q5127848)class (Q16889133)class (Q20937557)sequence →(#) (Q67518978)occurrent (Q3249551)process (@)→(Q105460363)dissemination (Q112116869)public disclosing →(+) (Q125506646)transfer →(@) (Q3249551)process (Q1914636)activity (Q61788060)human activity (Q451967)intentional human activity (Q8187769)economic activity (Q1256657)information and communication (Q29584328)programming and broadcasting activities (Q15078788)broadcasting Parent classes (classes of items which contain this one item) .Wikidata:ClassificationFor help about classification, see  (Q15078788)broadcasting Classification of the class (Q289)television Classifications of work: doesInterestingly, the following variant of the query whereas this variant has no problem

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?o ?oLabel WHERE {
   wd:Q289 wdt:P31 ?a .
   ?a wdt:P279* ?o.

   SERVICE wikibase:label {
       bd:serviceParam wikibase:language "en" .
   }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?a") v2("?o"):::projected c1(["wd:Q289"]):::iri c5(["bd:serviceParam"]):::iri c7(["en"]):::literal c1 --"wdt:P31"--> v1 v1 --"wdt:P279"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end