org.dbpedia.extraction.destinations.formatters

UriPolicy

object UriPolicy

TODO: use scala.collection.Map[String, String] instead of java.util.Properties?

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. UriPolicy
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Policy = (IRI) ⇒ IRI

    A policy is a function takes a URI and may return the given URI or a transformed version of it.

    A policy is a function takes a URI and may return the given URI or a transformed version of it. Human-readable type alias.

  2. type PolicyApplicable = (IRI) ⇒ Boolean

    PolicyApplicable is a function that decides if a policy should be applied for the given DBpedia URI.

    PolicyApplicable is a function that decides if a policy should be applied for the given DBpedia URI. Human-readable type alias.

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. val ALL: Int

  5. val CONTEXT: Int

  6. val DATATYPE: Int

  7. val MAX_LENGTH: Int

  8. val OBJECT: Int

  9. val POSITIONS: Int

  10. val PREDICATE: Int

  11. val SUBJECT: Int

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def generic(applicableTo: PolicyApplicable): Policy

  18. final def getClass(): Class[_]

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

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

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

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

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

    Definition Classes
    AnyRef
  24. def parseFormats(config: Properties, prefix: String, policies: Map[String, Array[Policy]]): Map[String, Formatter]

    Parse all format lines.

    Parse all format lines.

    prefix

    format key prefix, e.g. "format"

    returns

    map from file suffix (without '.' dot) to formatter

  25. def parsePolicies(config: Properties, prefix: String): Map[String, Array[Policy]]

    parse all URI policy lines

    parse all URI policy lines

    prefix

    property key prefix, e.g. "uri-policy"

    returns

    map from URI policy name (including prefix) to an array of policies (with one entry for each position in a quad)

  26. def parsePolicy(list: String): Array[Policy]

    Parses a policy list like "uri:en,fr; generic:en"

  27. def rejectLong(applicableTo: PolicyApplicable): Policy

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. def toUri(iri: IRI): IRI

  31. def toUri(iri: String): IRI

  32. def uri(applicableTo: PolicyApplicable): Policy

  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def xmlSafe(applicableTo: PolicyApplicable): Policy

    Check if the tail of the URI could be used as an XML element name.

    Check if the tail of the URI could be used as an XML element name. If not, attach an underscore (which is a valid XML name). The resulting URI is guaranteed to be usable as a predicate in RDF/XML - it can be split into a valid namespace URI and a valid XML name.

    Examples:

    original URI xml safe URI (may be equal) possible namespace and name in RDF/XML

    http://foo/bar http://foo/bar http://foo/ bar http://foo/123 http://foo/123_ http://foo/123 _ http://foo/%22 http://foo/%22_ http://foo/%22 _ http://foo/%C3%BC http://foo/%C3%BC_ http://foo/%C3%BC _ http://foo/%C3%BCD http://foo/%C3%BCD http://foo/%C3%BC D http://foo/% http://foo/%22_ http://foo/%22 _ http://foo/bar_(fub) http://foo/bar_(fub)_ http://foo/bar_(fub) _ http://foo/bar#a123 http://foo/bar#a123 http://foo/bar# a123 http://foo/bar#123 http://foo/bar#123_ http://foo/bar#123 _ http://foo/bar# http://foo/bar#_ http://foo/bar# _ http://foo/bar?a123 http://foo/bar?a123 http://foo/bar? a123 http://foo/bar?a= http://foo/bar?a=_ http://foo/bar?a= _ http://foo/bar?a=b http://foo/bar?a=b http://foo/bar?a= b http://foo/bar?123 http://foo/bar?123_ http://foo/bar?123 _ http://foo/bar? http://foo/bar?_ http://foo/bar? _ http://foo/ http://foo/_ http://foo/ _ http://foo http://foo/_ http://foo/ _ http://foo/: http://foo/:_ http://foo/: _ http://foo/a: http://foo/a:_ http://foo/a: _ http://foo/a:b http://foo/a:b http://foo/a: b

Inherited from AnyRef

Inherited from Any

Ungrouped