Class LogicalOpUtils
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.utils.LogicalOpUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LogicalOpBGPAddCreates a logical bgpAdd operator that uses the BGP of the given request, together with the given federation member.static LogicalOpBGPOptAddCreates a logical bgpOptAdd operator that uses the BGP of the given request, together with the given federation member.static LogicalOpGPAddCreates a logical gpAdd operator that uses the graph pattern of the given request, together with the given federation member.static LogicalOpGPOptAddCreates a logical gpOptAdd operator that uses the graph pattern of the given request, together with the given federation member.static UnaryLogicalOpcreateLogicalAddOpFromLogicalReqOp(LogicalOpRequest<?, ?> reqOp) static UnaryLogicalOpstatic UnaryLogicalOpstatic BGPcreateNewBGP(LogicalOpBGPAdd lopBGPAdd1, LogicalOpBGPAdd lopBGPAdd2) Creates a BGP by merging two sets of triple patterns, which are extracted from two given bgpAdd operators.static BGPcreateNewBGP(LogicalOpBGPAdd lopBGPAdd, LogicalOpRequest<?, ?> lopReq) Creates a BGP by merging two sets of triple patterns, where one of them is extracted from a given bgpAdd operator, and another one is extracted from a given Request.static BGPcreateNewBGP(LogicalOpRequest<?, ?> lop1, LogicalOpRequest<?, ?> lop2) Creates a BGP by merging two sets of triple patterns, which are extracted from two given Requests.static BGPcreateNewBGP(LogicalOpTPAdd lopTPAdd, LogicalOpBGPAdd lopBGPAdd) Creates a BGP by adding a triple pattern to a set of triple patterns, where the triple pattern is extracted from a given tpAdd operator, and the set of triple patterns are extracted from a given bgpAdd operator.static BGPcreateNewBGP(LogicalOpTPAdd lopTPAdd, LogicalOpRequest<?, ?> lopReq) Creates a BGP by adding a triple pattern to a set of triple patterns, where the triple pattern is extracted from a given tpAdd operator, and the set of triple patterns are extracted from the given Request.static SPARQLGraphPatterncreateNewGraphPatternWithAND(LogicalOpBGPAdd lopBGPAdd, LogicalOpRequest<?, ?> lopReq) Creates a new graph pattern by adding a BGP to the graph pattern of a given SPARQLRequest, where the BGP is extracted from a given bgpAdd operator.static SPARQLGraphPatterncreateNewGraphPatternWithAND(LogicalOpRequest<?, ?> lopReq1, LogicalOpRequest<?, ?> lopReq2) Creates a new graph pattern using a conjunction of two graph patterns, which are extracted from two given SPARQLRequests.static SPARQLGraphPatterncreateNewGraphPatternWithAND(LogicalOpTPAdd lopTPAdd, LogicalOpRequest<?, ?> lopReq) Creates a new graph pattern by adding a triple pattern to the graph pattern of a given SPARQLRequest, where the triple pattern is extracted from a given tpAdd operator.static SPARQLGraphPatterncreateNewGraphPatternWithUnion(LogicalOpRequest<?, ?> lopReq1, LogicalOpRequest<?, ?> lopReq2) Creates a new graph pattern using a union of two graph patterns, which are extracted from two given SPARQLRequests.static LogicalOpTPAddCreates a logical tpAdd operator that uses the triple pattern of the given request, together with the given federation member.static LogicalOpTPOptAddCreates a logical tpOptAdd operator that uses the triple pattern of the given request, together with the given federation member.static org.apache.jena.sparql.syntax.ElementgetPatternOfRequest(LogicalOpRequest<?, ?> lopReq) static Set<TriplePattern>getTriplePatternsOfReq(LogicalOpRequest<?, ?> lop) Return a set of triple patterns, which are extracted from a given Request (support TriplePatternRequest and BGPRequest)
-
Constructor Details
-
LogicalOpUtils
public LogicalOpUtils()
-
-
Method Details
-
createNewBGP
Creates a BGP by merging two sets of triple patterns, which are extracted from two given Requests. -
createNewBGP
Creates a BGP by adding a triple pattern to a set of triple patterns, where the triple pattern is extracted from a given tpAdd operator, and the set of triple patterns are extracted from the given Request. -
createNewBGP
Creates a BGP by merging two sets of triple patterns, where one of them is extracted from a given bgpAdd operator, and another one is extracted from a given Request. -
createNewBGP
Creates a BGP by merging two sets of triple patterns, which are extracted from two given bgpAdd operators. -
createNewBGP
Creates a BGP by adding a triple pattern to a set of triple patterns, where the triple pattern is extracted from a given tpAdd operator, and the set of triple patterns are extracted from a given bgpAdd operator. -
createNewGraphPatternWithAND
public static SPARQLGraphPattern createNewGraphPatternWithAND(LogicalOpTPAdd lopTPAdd, LogicalOpRequest<?, ?> lopReq) Creates a new graph pattern by adding a triple pattern to the graph pattern of a given SPARQLRequest, where the triple pattern is extracted from a given tpAdd operator. -
createNewGraphPatternWithAND
public static SPARQLGraphPattern createNewGraphPatternWithAND(LogicalOpBGPAdd lopBGPAdd, LogicalOpRequest<?, ?> lopReq) Creates a new graph pattern by adding a BGP to the graph pattern of a given SPARQLRequest, where the BGP is extracted from a given bgpAdd operator. -
createNewGraphPatternWithAND
public static SPARQLGraphPattern createNewGraphPatternWithAND(LogicalOpRequest<?, ?> lopReq1, LogicalOpRequest<?, ?> lopReq2) Creates a new graph pattern using a conjunction of two graph patterns, which are extracted from two given SPARQLRequests. -
createNewGraphPatternWithUnion
public static SPARQLGraphPattern createNewGraphPatternWithUnion(LogicalOpRequest<?, ?> lopReq1, LogicalOpRequest<?, ?> lopReq2) Creates a new graph pattern using a union of two graph patterns, which are extracted from two given SPARQLRequests. -
getPatternOfRequest
public static org.apache.jena.sparql.syntax.Element getPatternOfRequest(LogicalOpRequest<?, ?> lopReq) -
getTriplePatternsOfReq
Return a set of triple patterns, which are extracted from a given Request (support TriplePatternRequest and BGPRequest) -
createLogicalAddOpFromPhysicalReqOp
-
createLogicalAddOpFromLogicalReqOp
-
createLogicalOptAddOpFromPhysicalReqOp
-
createBGPAddLopFromRequest
Creates a logical bgpAdd operator that uses the BGP of the given request, together with the given federation member. -
createBGPOptAddLopFromRequest
Creates a logical bgpOptAdd operator that uses the BGP of the given request, together with the given federation member. -
createTPAddLopFromRequest
public static LogicalOpTPAdd createTPAddLopFromRequest(TriplePatternRequest req, FederationMember fm) Creates a logical tpAdd operator that uses the triple pattern of the given request, together with the given federation member. -
createTPOptAddLopFromRequest
public static LogicalOpTPOptAdd createTPOptAddLopFromRequest(TriplePatternRequest req, FederationMember fm) Creates a logical tpOptAdd operator that uses the triple pattern of the given request, together with the given federation member. -
createGPAddLopFromRequest
Creates a logical gpAdd operator that uses the graph pattern of the given request, together with the given federation member. -
createGPOptAddLopFromRequest
public static LogicalOpGPOptAdd createGPOptAddLopFromRequest(SPARQLRequest req, FederationMember fm) Creates a logical gpOptAdd operator that uses the graph pattern of the given request, together with the given federation member.
-