Documentation ¶
Overview ¶
Example (Example1) ¶
package main import ( "embed" "fmt" _ "embed" nq "github.com/0x51-dev/rdf/nquads" ) var example1 string func main() { doc, _ := nq.ParseDocument(example1) fmt.Println(doc) }
Output: <http://one.example/subject1> <http://one.example/predicate1> <http://one.example/object1> <http://example.org/graph3> . _:subject1 <http://an.example/predicate1> "object1" <http://example.org/graph1> . _:subject2 <http://an.example/predicate2> "object2" <http://example.org/graph5> .
Index ¶
Examples ¶
Constants ¶
View Source
const ( // MediaType with an encoding using UTF-8. MediaType = "application/n-quads" // MediaTypeAlt with an encoding using 7-bit US-ASCII. MediaTypeAlt = "text/x-nquads" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.