Skip to content

Commit

Permalink
Add n3.
Browse files Browse the repository at this point in the history
  • Loading branch information
q-uint committed Sep 30, 2023
1 parent 65175a3 commit 6953232
Show file tree
Hide file tree
Showing 50 changed files with 1,459 additions and 66 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
- [RDF 1.1 Turtle](https://www.w3.org/TR/2014/REC-turtle-20140225/)
- [RDF 1.1 N-Triples](https://www.w3.org/TR/2014/REC-n-triples-20140225/)
- [RDF 1.1 N-Quads](https://www.w3.org/TR/2014/REC-n-quads-20140225/)
- [Notation3 Language (Draft)](https://w3c.github.io/N3/reports/20230703/)
- [RDF Test Cases](https://www.w3.org/TR/2014/NOTE-rdf11-testcases-20140225/)
7 changes: 4 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module github.com/0x51-dev/rdf

go 1.21.0

require github.com/0x51-dev/upeg v0.0.0-20230905211053-ee881c4f4508

require github.com/0x51-dev/ri v0.0.0-20230708135038-029eea38546f
require (
github.com/0x51-dev/rids v0.1.0
github.com/0x51-dev/upeg v0.1.0
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/0x51-dev/ri v0.0.0-20230708135038-029eea38546f h1:6bWTNS1c7TqLdQEruMwLvDQ7Jn+vJniE/dqeTmOenVA=
github.com/0x51-dev/ri v0.0.0-20230708135038-029eea38546f/go.mod h1:jw6tYgXeAqwcKnvjTOI6rfGEhLj3R5PSMUbRlKL2DvM=
github.com/0x51-dev/upeg v0.0.0-20230905211053-ee881c4f4508 h1:QuF39EbNtzj2iQ6d/eetRDbz8YGCctZQN1AJxa6wc2I=
github.com/0x51-dev/upeg v0.0.0-20230905211053-ee881c4f4508/go.mod h1:ts9/Zafxb9W9drZFTmQNMR7kLOyHyBw37NuowyiDork=
github.com/0x51-dev/rids v0.1.0 h1:uCb0lrYeE374b43rhy4keFUrVCSbMYSaSqLfoGveQH8=
github.com/0x51-dev/rids v0.1.0/go.mod h1:l/rEmCVwqu6nRMdLIwF6HriyB0M4KevDdSKAlaNVw7U=
github.com/0x51-dev/upeg v0.1.0 h1:ze3Uu4H9q0Fq8FuJmV1RsrTl85LholOZExCBwpujiPc=
github.com/0x51-dev/upeg v0.1.0/go.mod h1:ts9/Zafxb9W9drZFTmQNMR7kLOyHyBw37NuowyiDork=
10 changes: 5 additions & 5 deletions internal/testsuite/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Developer struct {
Homepage string
}

func (d Developer) line() turtle.Line {
func (d Developer) line() turtle.Statement {
var b turtle.Triple
b.Subject = d.IRI
b.PredicateObjectList = turtle.PredicateObjectList{
Expand Down Expand Up @@ -72,7 +72,7 @@ type Project struct {
Developer []Developer
}

func (p Project) line() turtle.Line {
func (p Project) line() turtle.Statement {
var t turtle.Triple
t.Subject = p.IRI
var implements []turtle.Object
Expand Down Expand Up @@ -125,14 +125,14 @@ func (p Project) line() turtle.Line {
}

type Report struct {
prefixes []turtle.Line
prefixes []turtle.Statement
Project Project
testcases []TestCase
}

func NewReport() *Report {
return &Report{
prefixes: []turtle.Line{
prefixes: []turtle.Statement{
&turtle.Prefix{Name: "dc:", IRI: "http://purl.org/dc/elements/1.1/"},
&turtle.Prefix{Name: "rdft:", IRI: "http://www.w3.org/ns/rdftest#"},
&turtle.Prefix{Name: "earl:", IRI: "http://www.w3.org/ns/earl#"},
Expand Down Expand Up @@ -171,7 +171,7 @@ type TestCase struct {
Test turtle.IRI
}

func (tc TestCase) line() turtle.Line {
func (tc TestCase) line() turtle.Statement {
var b turtle.Triple
b.BlankNodePropertyList = turtle.BlankNodePropertyList{
{
Expand Down
Loading

0 comments on commit 6953232

Please sign in to comment.