Skip to content

Commit

Permalink
Add issue #171 test
Browse files Browse the repository at this point in the history
  • Loading branch information
filip26 committed Jun 1, 2021
1 parent 7bff8f9 commit 6ad918e
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/test/resources/com/apicatalog/jsonld/test/issue171-frame.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"@context": {
"@base": "http://n2t.net/ark:/39333/ncg/place/",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"ncv": "http://n2t.net/ark:/39333/ncg/vocab#",
"nct": "http://n2t.net/ark:/39333/ncg/type#",
"skos": "http://www.w3.org/2004/02/skos/core#",
"records": {
"@container": "@set",
"@type": "@id",
"@id": "rdfs:member"
},
"county": {
"@container": "@set",
"@type": "@id",
"@id": "ncv:county"
}
},
"@type": "rdf:Bag",
"records": {
"@id": {},
"county": {
"@embed": "@always",
"@explicit": true,
"skos:label": {}
}
}
}
47 changes: 47 additions & 0 deletions src/test/resources/com/apicatalog/jsonld/test/issue171-in.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"@graph": [
{
"@id": "http://n2t.net/ark:/39333/ncg/dataset",
"@type": "http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag",
"member": [
"http://n2t.net/ark:/39333/ncg/place/NCG11248",
"http://n2t.net/ark:/39333/ncg/place/NCG07554",
"http://n2t.net/ark:/39333/ncg/place/NCG03755"
]
},
{
"@id": "http://n2t.net/ark:/39333/ncg/place/NCG03755",
"@type": "http://n2t.net/ark:/39333/ncg/type#Mountain",
"county": "http://n2t.net/ark:/39333/ncg/place/NCG11248",
"label": "Crawford Mountain"
},
{
"@id": "http://n2t.net/ark:/39333/ncg/place/NCG07554",
"@type": "http://n2t.net/ark:/39333/ncg/type#Community",
"county": "http://n2t.net/ark:/39333/ncg/place/NCG11248",
"label": "Ichley"
},
{
"@id": "http://n2t.net/ark:/39333/ncg/place/NCG11248",
"@type": "http://n2t.net/ark:/39333/ncg/type#County",
"label": "Orange County",
"description": "Not to be confused with Orange County, CA"
}
],
"@context": {
"label": {
"@id": "http://www.w3.org/2004/02/skos/core#label"
},
"description": {
"@id": "http://www.w3.org/2004/02/skos/core#note"
},
"county": {
"@id": "http://n2t.net/ark:/39333/ncg/vocab#county",
"@type": "@id"
},
"member": {
"@id": "http://www.w3.org/2000/01/rdf-schema#member",
"@type": "@id"
}
}
}
55 changes: 55 additions & 0 deletions src/test/resources/com/apicatalog/jsonld/test/issue171-out.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"@context": {
"@base": "http://n2t.net/ark:/39333/ncg/place/",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"ncv": "http://n2t.net/ark:/39333/ncg/vocab#",
"nct": "http://n2t.net/ark:/39333/ncg/type#",
"skos": "http://www.w3.org/2004/02/skos/core#",
"records": {
"@container": "@set",
"@type": "@id",
"@id": "rdfs:member"
},
"county": {
"@container": "@set",
"@type": "@id",
"@id": "ncv:county"
}
},
"@id": "../dataset",
"@type": "rdf:Bag",
"records": [
{
"@id": "NCG11248",
"@type": "nct:County",
"county": [],
"skos:label": "Orange County",
"skos:note": "Not to be confused with Orange County, CA"
},
{
"@id": "NCG07554",
"@type": "nct:Community",
"county": [
{
"@id": "NCG11248",
"@type": "nct:County",
"skos:label": "Orange County"
}
],
"skos:label": "Ichley"
},
{
"@id": "NCG03755",
"@type": "nct:Mountain",
"county": [
{
"@id": "NCG11248",
"@type": "nct:County",
"skos:label": "Orange County"
}
],
"skos:label": "Crawford Mountain"
}
]
}
8 changes: 8 additions & 0 deletions src/test/resources/com/apicatalog/jsonld/test/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@
"name": "ToRDF: document relative subject",
"input": "issue145-in.json",
"expect": "issue145-out.nq"
},
{
"@id": "#t0012",
"@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"],
"name": "ToRDF: document relative subject",
"input": "issue171-in.json",
"expect": "issue171-out.json",
"frame": "issue171-frame.json"
}


Expand Down

0 comments on commit 6ad918e

Please sign in to comment.