Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save smalyshev/b76460128827e5b636db103e9a0c6813 to your computer and use it in GitHub Desktop.
Save smalyshev/b76460128827e5b636db103e9a0c6813 to your computer and use it in GitHub Desktop.
Query
SPARQL
SELECT * WHERE {
wd:Q27119725 wdt:P910 ?category .
?link schema:about ?category; schema:isPartOf <https://en.wikipedia.org/>; schema:name ?title .
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam wikibase:endpoint "en.wikipedia.org" .
bd:serviceParam mwapi:gcmtitle ?title .
bd:serviceParam mwapi:generator "categorymembers" .
bd:serviceParam mwapi:gcmprop "ids|title|type" .
bd:serviceParam mwapi:gcmlimit "max" .
# out
?subcat wikibase:apiOutput mwapi:title .
?ns wikibase:apiOutput "@ns" .
?item wikibase:apiOutputItem mwapi:item .
}
?item rdfs:label ?itemLabel
FILTER(lang(?itemLabel) = "en")
}
Parse Tree
QueryContainer
SelectQuery
Select ( * )
WhereClause
GraphPatternGroup
BasicGraphPattern
TriplesSameSubjectPath
IRI (http://www.wikidata.org/entity/Q27119725)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://www.wikidata.org/prop/direct/P910)
ObjectList
Var (category)
TriplesSameSubjectPath
Var (link)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://schema.org/about)
ObjectList
Var (category)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://schema.org/isPartOf)
ObjectList
IRI (https://en.wikipedia.org/)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://schema.org/name)
ObjectList
Var (title)
ServiceGraphPattern
IRI (http://wikiba.se/ontology#mwapi)
GraphPatternGroup
BasicGraphPattern
TriplesSameSubjectPath
IRI (http://www.bigdata.com/rdf#serviceParam)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://wikiba.se/ontology#api)
ObjectList
RDFLiteral
String (Generator)
TriplesSameSubjectPath
IRI (http://www.bigdata.com/rdf#serviceParam)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://wikiba.se/ontology#endpoint)
ObjectList
RDFLiteral
String (en.wikipedia.org)
TriplesSameSubjectPath
IRI (http://www.bigdata.com/rdf#serviceParam)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://wikiba.se/ontology#api#gcmtitle)
ObjectList
Var (title)
TriplesSameSubjectPath
IRI (http://www.bigdata.com/rdf#serviceParam)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://wikiba.se/ontology#api#generator)
ObjectList
RDFLiteral
String (categorymembers)
TriplesSameSubjectPath
IRI (http://www.bigdata.com/rdf#serviceParam)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://wikiba.se/ontology#api#gcmprop)
ObjectList
RDFLiteral
String (ids|title|type)
TriplesSameSubjectPath
IRI (http://www.bigdata.com/rdf#serviceParam)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://wikiba.se/ontology#api#gcmlimit)
ObjectList
RDFLiteral
String (max)
TriplesSameSubjectPath
Var (subcat)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://wikiba.se/ontology#apiOutput)
ObjectList
IRI (http://wikiba.se/ontology#api#title)
TriplesSameSubjectPath
Var (ns)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://wikiba.se/ontology#apiOutput)
ObjectList
RDFLiteral
String (@ns)
TriplesSameSubjectPath
Var (item)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://wikiba.se/ontology#apiOutputItem)
ObjectList
IRI (http://wikiba.se/ontology#api#item)
BasicGraphPattern
TriplesSameSubjectPath
Var (item)
PropertyListPath
PathAlternative
PathSequence
PathElt
IRI (http://www.w3.org/2000/01/rdf-schema#label)
ObjectList
Var (itemLabel)
Constraint
Compare (EQ)
Lang
Var (itemLabel)
RDFLiteral
String (en)
Original AST
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX hint: <http://www.bigdata.com/queryHints#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX bds: <http://www.bigdata.com/rdf/search#>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX pqn: <http://www.wikidata.org/prop/qualifier/value-normalized/>
PREFIX prn: <http://www.wikidata.org/prop/reference/value-normalized/>
PREFIX mwapi: <http://wikiba.se/ontology#api#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pqv: <http://www.wikidata.org/prop/qualifier/value/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX prv: <http://www.wikidata.org/prop/reference/value/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wds: <http://www.wikidata.org/entity/statement/>
PREFIX wdv: <http://www.wikidata.org/value/>
PREFIX wdref: <http://www.wikidata.org/reference/>
PREFIX wdata: <http://www.wikidata.org/wiki/Special:EntityData/>
PREFIX schema: <http://schema.org/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX geof: <http://www.opengis.net/def/geosparql/function/>
QueryType: SELECT
includeInferred=true
timeout=600000
SELECT *
JoinGroupNode {
StatementPatternNode(ConstantNode(TermId(0U)[http://www.wikidata.org/entity/Q27119725]), ConstantNode(TermId(0U)[http://www.wikidata.org/prop/direct/P910]), VarNode(category)) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(VarNode(link), ConstantNode(TermId(0U)[http://schema.org/about]), VarNode(category)) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(VarNode(link), ConstantNode(TermId(0U)[http://schema.org/isPartOf]), ConstantNode(TermId(0U)[https://en.wikipedia.org/])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(VarNode(link), ConstantNode(TermId(0U)[http://schema.org/name]), VarNode(title)) [scope=DEFAULT_CONTEXTS]
SERVICE <ConstantNode(TermId(0U)[http://wikiba.se/ontology#mwapi])> {
JoinGroupNode {
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api]), ConstantNode(TermId(0L)[Generator])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#endpoint]), ConstantNode(TermId(0L)[en.wikipedia.org])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#gcmtitle]), VarNode(title)) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#generator]), ConstantNode(TermId(0L)[categorymembers])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#gcmprop]), ConstantNode(TermId(0L)[ids|title|type])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#gcmlimit]), ConstantNode(TermId(0L)[max])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(VarNode(subcat), ConstantNode(TermId(0U)[http://wikiba.se/ontology#apiOutput]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#title])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(VarNode(ns), ConstantNode(TermId(0U)[http://wikiba.se/ontology#apiOutput]), ConstantNode(TermId(0L)[@ns])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(VarNode(item), ConstantNode(TermId(0U)[http://wikiba.se/ontology#apiOutputItem]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#item])) [scope=DEFAULT_CONTEXTS]
}
}
StatementPatternNode(VarNode(item), ConstantNode(TermId(0U)[http://www.w3.org/2000/01/rdf-schema#label]), VarNode(itemLabel)) [scope=DEFAULT_CONTEXTS]
FILTER( FunctionNode(FunctionNode(VarNode(itemLabel))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2006/sparql-functions#lang],ConstantNode(TermId(0L)[en]))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2005/xpath-functions#equal-to] )
}
Static Analysis Statistics
object category elapsed [ms] elapsed [us] numCalls
ParseTime Parser 3 3507 1
ResolveValues Resolve Values 2 2998 1
Optimizers Optimizers (all) 27 27394 1
LabelServiceExtractOptimizer Optimizer 0 45 1
ASTOrderByAggregateFlatteningOptimizer Optimizer 0 8 1
ASTQueryHintOptimizer Optimizer 0 697 1
ASTFilterNormalizationOptimizer Optimizer 0 19 1
ASTStaticBindingsOptimizer Optimizer 0 210 1
ASTSearchInSearchOptimizer Optimizer 0 25 1
ASTPropertyPathOptimizer Optimizer 0 13 1
ASTSetValueExpressionsOptimizer Optimizer 0 545 1
ASTFlattenUnionsOptimizer Optimizer 0 6 1
ASTUnionFiltersOptimizer Optimizer 0 6 1
ASTEmptyGroupOptimizer Optimizer 0 5 1
ASTWildcardProjectionOptimizer Optimizer 0 427 1
ASTSearchOptimizer Optimizer 0 16 1
ASTFulltextSearchOptimizer Optimizer 0 8 1
ASTGeoSpatialSearchOptimizer Optimizer 0 7 1
AskOptimizer Optimizer 0 3 1
ASTDescribeOptimizer Optimizer 0 3 1
ASTConstructOptimizer Optimizer 0 7 1
ASTExistsOptimizer Optimizer 0 11 1
ASTGraphGroupOptimizer Optimizer 0 9 1
ASTLiftPreFiltersOptimizer Optimizer 0 2 1
ASTALPServiceOptimizer Optimizer 0 29 1
ASTBottomUpOptimizer Optimizer 2 2972 1
ASTSimpleOptionalOptimizer Optimizer 0 25 1
ASTFlattenJoinGroupsOptimizer Optimizer 0 8 1
ASTServiceNodeOptimizer Optimizer 0 11 1
ASTJoinGroupOrderOptimizer Optimizer 1 1646 2
ASTRunFirstRunLastOptimizer Optimizer 0 31 2
ASTRangeOptimizer Optimizer 0 29 1
ASTRangeCountOptimizer Optimizer 3 3068 1
ASTCardinalityOptimizer Optimizer 0 33 1
ASTFastRangeCountOptimizer Optimizer 0 16 1
ASTSimpleGroupByAndCountOptimizer Optimizer 0 10 1
ASTDistinctTermScanOptimizer Optimizer 0 10 1
ASTStaticJoinOptimizer Optimizer 0 232 1
ASTAttachJoinFiltersOptimizer Optimizer 0 256 1
ASTSparql11SubqueryOptimizer Optimizer 0 6 1
ASTNamedSubqueryOptimizer Optimizer 0 3 1
ASTSubGroupJoinVarOptimizer Optimizer 0 8 1
EmptyLabelServiceOptimizer Optimizer 0 21 1
LabelServicePlacementOptimizer Optimizer 0 11 1
RangeCount Range Count 1 1818 5
Optimized AST
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX hint: <http://www.bigdata.com/queryHints#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX bds: <http://www.bigdata.com/rdf/search#>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX pqn: <http://www.wikidata.org/prop/qualifier/value-normalized/>
PREFIX prn: <http://www.wikidata.org/prop/reference/value-normalized/>
PREFIX mwapi: <http://wikiba.se/ontology#api#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pqv: <http://www.wikidata.org/prop/qualifier/value/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX prv: <http://www.wikidata.org/prop/reference/value/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wds: <http://www.wikidata.org/entity/statement/>
PREFIX wdv: <http://www.wikidata.org/value/>
PREFIX wdref: <http://www.wikidata.org/reference/>
PREFIX wdata: <http://www.wikidata.org/wiki/Special:EntityData/>
PREFIX schema: <http://schema.org/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX geof: <http://www.opengis.net/def/geosparql/function/>
QueryType: SELECT
includeInferred=true
timeout=600000
SELECT VarNode(category) VarNode(link) VarNode(title) VarNode(subcat) VarNode(ns) VarNode(item) VarNode(itemLabel)
JoinGroupNode {
StatementPatternNode(ConstantNode(Vocab(2)[http://www.wikidata.org/entity/Q]:XSDUnsignedInt(27119725)), ConstantNode(Vocab(6)[http://www.wikidata.org/prop/direct/P]:XSDUnsignedShort(910)), VarNode(category)) [scope=DEFAULT_CONTEXTS]
AST2BOpBase.estimatedCardinality=1
AST2BOpBase.originalIndex=SPO
StatementPatternNode(VarNode(link), ConstantNode(Vocab(36)[http://schema.org/about]), VarNode(category)) [scope=DEFAULT_CONTEXTS]
AST2BOpBase.estimatedCardinality=280
AST2BOpBase.originalIndex=POS
StatementPatternNode(VarNode(link), ConstantNode(TermId(13U)[http://schema.org/isPartOf]), ConstantNode(TermId(24U)[https://en.wikipedia.org/])) [scope=DEFAULT_CONTEXTS]
AST2BOpBase.estimatedCardinality=6
AST2BOpBase.originalIndex=POS
StatementPatternNode(VarNode(link), ConstantNode(TermId(14U)[http://schema.org/name]), VarNode(title)) [scope=DEFAULT_CONTEXTS]
AST2BOpBase.estimatedCardinality=280
AST2BOpBase.originalIndex=POS
SERVICE <ConstantNode(TermId(0U)[http://wikiba.se/ontology#mwapi])> {
JoinGroupNode {
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api]), ConstantNode(TermId(0L)[Generator])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#endpoint]), ConstantNode(TermId(0L)[en.wikipedia.org])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#gcmtitle]), VarNode(title)) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#generator]), ConstantNode(TermId(0L)[categorymembers])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#gcmprop]), ConstantNode(TermId(0L)[ids|title|type])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#gcmlimit]), ConstantNode(TermId(0L)[max])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(VarNode(subcat), ConstantNode(TermId(0U)[http://wikiba.se/ontology#apiOutput]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#title])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(VarNode(ns), ConstantNode(TermId(0U)[http://wikiba.se/ontology#apiOutput]), ConstantNode(TermId(0L)[@ns])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(VarNode(item), ConstantNode(TermId(0U)[http://wikiba.se/ontology#apiOutputItem]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#item])) [scope=DEFAULT_CONTEXTS]
}
}
StatementPatternNode(VarNode(item), ConstantNode(Vocab(70)[http://www.w3.org/2000/01/rdf-schema#label]), VarNode(itemLabel)) [scope=DEFAULT_CONTEXTS] [#filters=1]
FILTER( FunctionNode(FunctionNode(VarNode(itemLabel))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2006/sparql-functions#lang, valueExpr=com.bigdata.rdf.internal.constraints.LangBOp(itemLabel)[ IVValueExpression.namespace=wdq.lex, IVValueExpression.timestamp=1496270487267]],ConstantNode(TermId(32L)[en]))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2005/xpath-functions#equal-to, valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(com.bigdata.rdf.internal.constraints.LangBOp(itemLabel)[ IVValueExpression.namespace=wdq.lex, IVValueExpression.timestamp=1496270487267],TermId(32L)[en])[ CompareBOp.op=EQ]] )
AST2BOpBase.estimatedCardinality=311
AST2BOpBase.originalIndex=POS
}
with static (exogeneous) bindings defined as follows:
{
{ }
}
Query Plan
com.bigdata.bop.rdf.join.ChunkedMaterializationOp[23](ProjectionOp[22])[ ChunkedMaterializationOp.vars=[category, link, subcat, ns, item, itemLabel], IPredicate.relationName=[wdq.lex], IPredicate.timestamp=1496270487267, ChunkedMaterializationOp.materializeAll=true, PipelineOp.sharedState=true, BOp.bopId=23, BOp.timeout=600000, BOp.namespace=wdq, QueryEngine.queryId=88d606bc-41ce-498c-84bd-516562904a70, QueryEngine.chunkHandler=com.bigdata.bop.engine.ManagedHeapStandloneChunkHandler@2a31a4b9]
com.bigdata.bop.solutions.ProjectionOp[22](ConditionalRoutingOp[19])[ BOp.bopId=22, BOp.evaluationContext=CONTROLLER, PipelineOp.sharedState=true, JoinAnnotations.select=[category, link, title, subcat, ns, item, itemLabel]]
com.bigdata.bop.bset.ConditionalRoutingOp[19](ChunkedMaterializationOp[21])[ BOp.bopId=19, ConditionalRoutingOp.condition=com.bigdata.rdf.internal.constraints.SPARQLConstraint(com.bigdata.rdf.internal.constraints.CompareBOp(com.bigdata.rdf.internal.constraints.LangBOp(itemLabel)[ IVValueExpression.namespace=wdq.lex, IVValueExpression.timestamp=1496270487267],TermId(32L)[en])[ CompareBOp.op=EQ])]
com.bigdata.bop.rdf.join.ChunkedMaterializationOp[21](ConditionalRoutingOp[20])[ ChunkedMaterializationOp.vars=[itemLabel], IPredicate.relationName=[wdq.lex], IPredicate.timestamp=1496270487267, ChunkedMaterializationOp.materializeAll=false, PipelineOp.sharedState=true, PipelineOp.reorderSolutions=true, PipelineOp.maxParallel=5, BOp.bopId=21]
com.bigdata.bop.bset.ConditionalRoutingOp[20](PipelineJoin[18])[ BOp.bopId=20, ConditionalRoutingOp.condition=com.bigdata.rdf.internal.constraints.SPARQLConstraint(com.bigdata.rdf.internal.constraints.NeedsMaterializationBOp(com.bigdata.rdf.internal.constraints.CompareBOp(com.bigdata.rdf.internal.constraints.LangBOp(itemLabel)[ IVValueExpression.namespace=wdq.lex, IVValueExpression.timestamp=1496270487267],TermId(32L)[en])[ CompareBOp.op=EQ])), PipelineOp.altSinkRef=19]
com.bigdata.bop.join.PipelineJoin[18](MockTermResolverOp[15])[ BOp.bopId=18, JoinAnnotations.constraints=[com.bigdata.rdf.internal.constraints.TryBeforeMaterializationConstraint(SPARQLConstraint{condition=com.bigdata.rdf.internal.constraints.CompareBOp(com.bigdata.rdf.internal.constraints.LangBOp(itemLabel)[ IVValueExpression.namespace=wdq.lex, IVValueExpression.timestamp=1496270487267],TermId(32L)[en])[ CompareBOp.op=EQ]})], AST2BOpBase.simpleJoin=false, BOp.evaluationContext=ANY, AccessPathJoinAnnotations.predicate=com.bigdata.rdf.spo.SPOPredicate[16](item=null, Vocab(70)[http://www.w3.org/2000/01/rdf-schema#label], itemLabel=null, --anon-17=null)[ IPredicate.relationName=[wdq.spo], IPredicate.timestamp=1496270487267, BOp.bopId=16, AST2BOpBase.estimatedCardinality=311, AST2BOpBase.originalIndex=POS, IPredicate.flags=[KEYS,VALS,READONLY,PARALLEL]]]
com.bigdata.bop.rdf.join.MockTermResolverOp[15](ServiceCallJoin[13])[ MockTermResolverOp.vars=[item, ns, subcat], IPredicate.relationName=[wdq.lex], IPredicate.timestamp=1496270487267, PipelineOp.sharedState=true, BOp.bopId=15]
com.bigdata.bop.controller.ServiceCallJoin[13](ChunkedMaterializationOp[14])[ BOp.bopId=13, BOp.evaluationContext=CONTROLLER, PipelineOp.pipelined=false, PipelineOp.sharedState=true, ServiceCallJoin.serviceNode=
SERVICE <ConstantNode(TermId(0U)[http://wikiba.se/ontology#mwapi])> {
JoinGroupNode {
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api]), ConstantNode(TermId(0L)[Generator])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#endpoint]), ConstantNode(TermId(0L)[en.wikipedia.org])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#gcmtitle]), VarNode(title)) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#generator]), ConstantNode(TermId(0L)[categorymembers])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#gcmprop]), ConstantNode(TermId(0L)[ids|title|type])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(ConstantNode(TermId(0U)[http://www.bigdata.com/rdf#serviceParam]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#gcmlimit]), ConstantNode(TermId(0L)[max])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(VarNode(subcat), ConstantNode(TermId(0U)[http://wikiba.se/ontology#apiOutput]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#title])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(VarNode(ns), ConstantNode(TermId(0U)[http://wikiba.se/ontology#apiOutput]), ConstantNode(TermId(0L)[@ns])) [scope=DEFAULT_CONTEXTS]
StatementPatternNode(VarNode(item), ConstantNode(TermId(0U)[http://wikiba.se/ontology#apiOutputItem]), ConstantNode(TermId(0U)[http://wikiba.se/ontology#api#item])) [scope=DEFAULT_CONTEXTS]
}
}, ServiceCallJoin.namespace=wdq, ServiceCallJoin.timestamp=1496270487267, HashJoinAnnotations.joinVars=[title], JoinAnnotations.constraints=null]
com.bigdata.bop.rdf.join.ChunkedMaterializationOp[14](PipelineJoin[12])[ ChunkedMaterializationOp.vars=[title], IPredicate.relationName=[wdq.lex], IPredicate.timestamp=1496270487267, ChunkedMaterializationOp.materializeAll=false, PipelineOp.sharedState=true, PipelineOp.reorderSolutions=true, PipelineOp.maxParallel=5, BOp.bopId=14]
com.bigdata.bop.join.PipelineJoin[12](PipelineJoin[9])[ BOp.bopId=12, JoinAnnotations.constraints=null, AST2BOpBase.simpleJoin=true, BOp.evaluationContext=ANY, AccessPathJoinAnnotations.predicate=com.bigdata.rdf.spo.SPOPredicate[10](link=null, TermId(14U)[http://schema.org/name], title=null, --anon-11=null)[ IPredicate.relationName=[wdq.spo], IPredicate.timestamp=1496270487267, BOp.bopId=10, AST2BOpBase.estimatedCardinality=280, AST2BOpBase.originalIndex=POS, IPredicate.flags=[KEYS,VALS,READONLY,PARALLEL]]]
com.bigdata.bop.join.PipelineJoin[9](PipelineJoin[6])[ BOp.bopId=9, JoinAnnotations.constraints=null, AST2BOpBase.simpleJoin=true, BOp.evaluationContext=ANY, AccessPathJoinAnnotations.predicate=com.bigdata.rdf.spo.SPOPredicate[7](link=null, TermId(13U)[http://schema.org/isPartOf], TermId(24U)[https://en.wikipedia.org/], --anon-8=null)[ IPredicate.relationName=[wdq.spo], IPredicate.timestamp=1496270487267, BOp.bopId=7, AST2BOpBase.estimatedCardinality=6, AST2BOpBase.originalIndex=POS, IPredicate.flags=[KEYS,VALS,READONLY,PARALLEL]]]
com.bigdata.bop.join.PipelineJoin[6](PipelineJoin[3])[ BOp.bopId=6, JoinAnnotations.constraints=null, AST2BOpBase.simpleJoin=true, BOp.evaluationContext=ANY, AccessPathJoinAnnotations.predicate=com.bigdata.rdf.spo.SPOPredicate[4](link=null, Vocab(36)[http://schema.org/about], category=null, --anon-5=null)[ IPredicate.relationName=[wdq.spo], IPredicate.timestamp=1496270487267, BOp.bopId=4, AST2BOpBase.estimatedCardinality=280, AST2BOpBase.originalIndex=POS, IPredicate.flags=[KEYS,VALS,READONLY,PARALLEL]]]
com.bigdata.bop.join.PipelineJoin[3]()[ BOp.bopId=3, JoinAnnotations.constraints=null, AST2BOpBase.simpleJoin=true, BOp.evaluationContext=ANY, AccessPathJoinAnnotations.predicate=com.bigdata.rdf.spo.SPOPredicate[1](Vocab(2)[http://www.wikidata.org/entity/Q]:XSDUnsignedInt(27119725), Vocab(6)[http://www.wikidata.org/prop/direct/P]:XSDUnsignedShort(910), category=null, --anon-2=null)[ IPredicate.relationName=[wdq.spo], IPredicate.timestamp=1496270487267, BOp.bopId=1, AST2BOpBase.estimatedCardinality=1, AST2BOpBase.originalIndex=SPO, IPredicate.flags=[KEYS,VALS,READONLY,PARALLEL]]]
Query Evaluation Statistics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment