Class RdfEmitterContextImpl

java.lang.Object
org.aksw.jena_sparql_api.mapper.context.RdfEmitterContextImpl
All Implemented Interfaces:
RdfEmitterContext

public class RdfEmitterContextImpl extends Object implements RdfEmitterContext
  • Field Details

    • frontier

      protected org.aksw.commons.collections.frontier.Frontier<Object> frontier
    • persistenceContext

      protected RdfPersistenceContext persistenceContext
    • nodeToResolutionRequest

      protected Map<org.apache.jena.graph.Node,ResolutionRequest> nodeToResolutionRequest
    • entityToNode

      protected Map<Object,org.apache.jena.graph.Node> entityToNode
    • i

      public static int i
  • Constructor Details

  • Method Details

    • getNodeToResolutionRequest

      public Map<org.apache.jena.graph.Node,ResolutionRequest> getNodeToResolutionRequest()
    • isEmitted

      public boolean isEmitted(Object entity)
      Specified by:
      isEmitted in interface RdfEmitterContext
      Returns:
    • setEmitted

      public void setEmitted(Object entity, boolean status)
      Specified by:
      setEmitted in interface RdfEmitterContext
    • requestResolution

      public org.apache.jena.graph.Node requestResolution(Object parentEntity, String propertyName)
      Parameters:
      entity -
      Returns:
    • requestResolution

      public org.apache.jena.graph.Node requestResolution(Object entity)
      Description copied from interface: RdfEmitterContext
      Resolve an entity to a node using default strategies
      Specified by:
      requestResolution in interface RdfEmitterContext
      Returns:
    • getFrontier

      public org.aksw.commons.collections.frontier.Frontier<Object> getFrontier()
      Request a placeholder node which corresponds to the (inverse) property of the given subject. Making the strategy for what to do with an existing node configurable is work in progress. Furthermore, the given java entity triple should be written using the given rdfType with the obtained placeholder node as the starting node. This means, that during writing, further requestResultion requests can be occurr. Note, that based on the triples written to the sink, existing iri values may be looked up and possibly reused. Node subject, Directed property,
      Specified by:
      getFrontier in interface RdfEmitterContext