Class PathFragment
java.lang.Object
org.aksw.jena_sparql_api.mapper.impl.type.PathFragment
A path fragment exposes means that can be used to perform nested path resolutions.
These means have the following priorities:
- nextResolver
- rdfType
- javaClass: In this case, a resolver has to ask the RDF type mapping model to yield an appropriate rdfType for the java class.
- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Class<?>protected PathResolverprotected RdfTypeprotected Fragment2 -
Constructor Summary
ConstructorsConstructorDescriptionPathFragment(Fragment2 relation, Class<?> javaClass, RdfType rdfType, PathResolver nextResolver) -
Method Summary
Modifier and TypeMethodDescriptioncloneWithNewRelation(Fragment2 newRelation) Create a copy of the path fragment with the relation replaced.Class<?>
-
Field Details
-
relation
-
nextResolver
-
rdfType
-
javaClass
-
-
Constructor Details
-
PathFragment
public PathFragment(Fragment2 relation, Class<?> javaClass, RdfType rdfType, PathResolver nextResolver)
-
-
Method Details
-
cloneWithNewRelation
Create a copy of the path fragment with the relation replaced. Useful when variables needed to be renamed.- Parameters:
newRelation-- Returns:
-
getRdfType
-
getRelation
-
getJavaClass
-
getNextResolver
-