Skip to content

Commit 6500284

Browse files
committed
Fix rebase
1 parent 6f35720 commit 6500284

35 files changed

+42
-43
lines changed

internal/linkedql/schema/schema.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
_ "github.com/cayleygraph/cayley/query/linkedql/steps"
1111
"github.com/cayleygraph/quad"
1212
"github.com/cayleygraph/quad/voc/owl"
13-
"github.com/cayleygraph/quad/voc/rdf"
1413
"github.com/cayleygraph/quad/voc/rdfs"
1514
"github.com/cayleygraph/quad/voc/xsd"
1615
)
@@ -347,11 +346,11 @@ func (g *generator) Generate() []byte {
347346
graph = append(graph, g.out...)
348347
data, err := json.Marshal(map[string]interface{}{
349348
"@context": map[string]interface{}{
350-
"rdf": rdf.NS,
351-
"rdfs": rdfs.NS,
352-
"owl": owl.NS,
353-
"xsd": xsd.NS,
354-
"linkedql": linkedql.Namespace,
349+
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
350+
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
351+
"owl": "http://www.w3.org/2002/07/owl#",
352+
"xsd": "http://www.w3.org/2001/XMLSchema#",
353+
"linkedql": "http://cayley.io/linkedql#",
355354
"rdfg": rdfgNamespace,
356355
},
357356
"@graph": graph,

query/linkedql/registry_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var unmarshalCases = []struct {
9393
type TestStep struct {
9494
Limit int `json:"limit"`
9595
Tags []string `json:"tags"`
96-
From PathStep `json:"from"`
96+
From PathStep `json:"from" minCardinality:"0"`
9797
Sub []PathStep `json:"sub"`
9898
}
9999

query/linkedql/steps/as.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var _ linkedql.PathStep = (*As)(nil)
1717

1818
// As corresponds to .tag().
1919
type As struct {
20-
From linkedql.PathStep `json:"from"`
20+
From linkedql.PathStep `json:"from" minCardinality:"0"`
2121
Name string `json:"name"`
2222
}
2323

query/linkedql/steps/back.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var _ linkedql.PathStep = (*Back)(nil)
1717

1818
// Back corresponds to .back().
1919
type Back struct {
20-
From linkedql.PathStep `json:"from"`
20+
From linkedql.PathStep `json:"from" minCardinality:"0"`
2121
Name string `json:"name"`
2222
}
2323

query/linkedql/steps/both.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var _ linkedql.PathStep = (*Both)(nil)
1717

1818
// Both corresponds to .both().
1919
type Both struct {
20-
From linkedql.PathStep `json:"from"`
20+
From linkedql.PathStep `json:"from" minCardinality:"0"`
2121
Properties linkedql.PropertyPath `json:"properties"`
2222
}
2323

query/linkedql/steps/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var _ linkedql.PathStep = (*Context)(nil)
1717

1818
// Context corresponds to context().
1919
type Context struct {
20-
From linkedql.PathStep `json:"from"`
20+
From linkedql.PathStep `json:"from" minCardinality:"0"`
2121
Rules map[string]string `json:"rules"`
2222
}
2323

query/linkedql/steps/count.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var _ linkedql.PathStep = (*Count)(nil)
1717

1818
// Count corresponds to .count().
1919
type Count struct {
20-
From linkedql.PathStep `json:"from"`
20+
From linkedql.PathStep `json:"from" minCardinality:"0"`
2121
}
2222

2323
// Description implements Step.

query/linkedql/steps/difference.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var _ linkedql.PathStep = (*Difference)(nil)
1717

1818
// Difference corresponds to .difference().
1919
type Difference struct {
20-
From linkedql.PathStep `json:"from"`
20+
From linkedql.PathStep `json:"from" minCardinality:"0"`
2121
Steps []linkedql.PathStep `json:"steps"`
2222
}
2323

query/linkedql/steps/follow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var _ linkedql.PathStep = (*Follow)(nil)
1717

1818
// Follow corresponds to .follow().
1919
type Follow struct {
20-
From linkedql.PathStep `json:"from"`
20+
From linkedql.PathStep `json:"from" minCardinality:"0"`
2121
Followed linkedql.PathStep `json:"followed"`
2222
}
2323

query/linkedql/steps/follow_reverse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var _ linkedql.PathStep = (*FollowReverse)(nil)
1717

1818
// FollowReverse corresponds to .followR().
1919
type FollowReverse struct {
20-
From linkedql.PathStep `json:"from"`
20+
From linkedql.PathStep `json:"from" minCardinality:"0"`
2121
Followed linkedql.PathStep `json:"followed"`
2222
}
2323

0 commit comments

Comments
 (0)