Class Lang

java.lang.Object
org.apache.jena.riot.Lang

public class Lang extends Object
A "language" (syntax). A language has a name, some alternative names, a content type, some alternative content types, and a list of associated file extensions. Names, content types and file extensions must be unique to one language. To create a Lang constant, use LangBuilder and register with RDFLanguages.
  • Field Details

    • RDFXML

      public static Lang RDFXML
    • TURTLE

      public static Lang TURTLE
    • TTL

      public static Lang TTL
      Alternative constant for TURTLE
    • N3

      public static Lang N3
      N3 (treat as Turtle)
    • NTRIPLES

      public static Lang NTRIPLES
    • NT

      public static Lang NT
      Alternative constant for NTRIPLES
    • JSONLD

      public static Lang JSONLD
      JSON-LD.

      This is the system default.

    • JSONLD11

      public static Lang JSONLD11
      JSONLD 1.1
    • RDFJSON

      public static Lang RDFJSON
      RDF/JSON. This is not JSON-LD.
      See Also:
    • TRIG

      public static Lang TRIG
    • NQUADS

      public static Lang NQUADS
    • NQ

      public static Lang NQ
      Alternative constant NQUADS
    • RDFPROTO

      public static Lang RDFPROTO
      The RDF syntax RDF Thrift
    • RDFTHRIFT

      public static Lang RDFTHRIFT
      The RDF syntax RDF Thrift
    • SHACLC

      public static Lang SHACLC
    • CSV

      public static Lang CSV
      "CSV" - Used in various ways.
    • TSV

      public static Lang TSV
      "TSV" - Used in various ways.
    • TRIX

      public static Lang TRIX
    • RDFNULL

      public static Lang RDFNULL
      The "null" language
    • RDFRAW

      public static Lang RDFRAW
      Output-only language for a StreamRDF (for development)
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getName

      public String getName()
    • getContentType

      public ContentType getContentType()
    • getHeaderString

      public String getHeaderString()
      As an HTTP Content-Type field value
    • getLabel

      public String getLabel()
    • getAltNames

      public List<String> getAltNames()
    • getAltContentTypes

      public List<String> getAltContentTypes()
    • getFileExtensions

      public List<String> getFileExtensions()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toLongString

      public String toLongString()