Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ObjectTerm ¶
func ObjectTerm(cols []sql.NullString) rdflibgo.Term
ObjectTerm rebuilds the RDF term the object columns held, writing the stored value exactly as-is. The object_type column carries the datatype IRI the literal was built with, so a typed literal is restored with its exact datatype whichever column its value landed in; a typed value column only supplies a fallback for a row written without one. The object_language column carries the language tag of an rdf:langString, which is restored ahead of the datatype since tagging a literal is what makes it a langString. A blank node object lands in object_string carrying the "_:" prefix build stored it with, which is what tells it apart from a plain string literal there; only a literal whose own text starts with "_:" would be misread, and nothing SAL builds writes one.
func SubjectTerm ¶
SubjectTerm rebuilds the subject column as the IRI or blank node it names, writing the stored value exactly as-is (no base resolution): a relative IRI in the table is exported as a relative IRI, since export mirrors what build wrote rather than rewriting it.