de.knutwalker.ntparser

ModelFactory

Related Doc: package ntparser

trait ModelFactory[S <: O, P <: S, O <: AnyRef, T <: AnyRef] extends AnyRef

A typeclass (or facade, if you will), that creates different parts of a statement graph. The parser uses this to construct its results.

S

The type of the Subject. Must b a subtype of the object node and is probably a supertype of a blank node and a uri node.

P

The type of the predicate. Must b a subtype of the object node.

O

The type of the object node.

T

The type of a triple or statement node.

Annotations
@implicitNotFound( ... )
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ModelFactory
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def blankNode(id: String): S

    Gets called when a blank node shall be created

    Gets called when a blank node shall be created

    id

    the ID for this blank node

    returns

    a new instance of S, must never be null.

  2. abstract def iriRef(uri: String): S

    Gets called when a iri-ref node shall be created

    Gets called when a iri-ref node shall be created

    uri

    the URI for this iri-ref

    returns

    a new instance of S, must never be null.

  3. abstract def literal(lexical: String): O

    Gets called when a new simple literal shall be created

    Gets called when a new simple literal shall be created

    lexical

    the value of the literal

    returns

    a new instance of O, must never be null.

  4. abstract def predicate(uri: String): P

    Gets called when a predicate shall be created

    Gets called when a predicate shall be created

    uri

    the URI for this predicate

    returns

    a new instance of P, must never be null.

  5. abstract def reset(): Unit

    Get called before many lines are parsed, but not when using the raw parser.

  6. abstract def statement(s: S, p: P, o: O): T

    Gets called when a new statement shall be created

    Gets called when a new statement shall be created

    s

    the instance for the subject of this statement

    p

    the instance for the predicate of this statement

    o

    the instance for the object of this statement

    returns

    a new instance of T, must never be null.

  7. abstract def taggedLiteral(lexical: String, lang: String): O

    Gets called when a new tagged literal shall be created

    Gets called when a new tagged literal shall be created

    lexical

    the value of the literal

    lang

    the language of the literal

    returns

    a new instance of O, must never be null.

  8. abstract def typedLiteral(lexical: String, dt: String): O

    Gets called when a new typed literal shall be created

    Gets called when a new typed literal shall be created

    lexical

    the value of the literal

    dt

    the URI of the datatype of the literal

    returns

    a new instance of O, must never be null.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  16. def toString(): String

    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped