Class PathFragment

java.lang.Object
org.aksw.jena_sparql_api.mapper.impl.type.PathFragment

public class PathFragment extends Object
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 Details

    • relation

      protected Fragment2 relation
    • nextResolver

      protected PathResolver nextResolver
    • rdfType

      protected RdfType rdfType
    • javaClass

      protected Class<?> javaClass
  • Constructor Details

  • Method Details

    • cloneWithNewRelation

      public PathFragment cloneWithNewRelation(Fragment2 newRelation)
      Create a copy of the path fragment with the relation replaced. Useful when variables needed to be renamed.
      Parameters:
      newRelation -
      Returns:
    • getRdfType

      public RdfType getRdfType()
    • getRelation

      public Fragment2 getRelation()
    • getJavaClass

      public Class<?> getJavaClass()
    • getNextResolver

      public PathResolver getNextResolver()