Skip to content
Thomas Bergwinkl edited this page Jul 7, 2016 · 1 revision

Content

^ PR /~https://github.com/rdfjs/representation-task-force/pull/61

Literal .literal(String value, [String languageOrDatatype]) returns a new instance of Literal. If languageOrDatatype is an IRI, then a NamedNode is constructed with that IRI, and is used for the value of .datatype. Otherwise languageOrDatatype is used for the value of .language.

DataFactory

For default values of the instance properties, see the individual interface definitions

Methods:

rename .termType to .valueType

The Term can be seen as a container. .termType would mean the type of the Term, so the interface name/type. But it describes the type of the value ("iri", "bnode", "literal", and "variable"). We had a very long discussion about these values. So let's keep these values and rename .termType to .valueType. Than it would describe the type of the value the container holds.

Actions

  • Rename Literal's .datatype to camel cased .dataType

  • Separate issue/PR to rename termType to valueType.