Skip to content

Commit

Permalink
Add issue #172 test
Browse files Browse the repository at this point in the history
  • Loading branch information
filip26 committed Jun 2, 2021
1 parent 7bff8f9 commit 8571228
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/test/resources/com/apicatalog/jsonld/test/issue172-frame.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"@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": "@id",
"@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/issue172-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"
}
}
}
52 changes: 52 additions & 0 deletions src/test/resources/com/apicatalog/jsonld/test/issue172-out.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"@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": "@id",
"@type": "@id",
"@id": "rdfs:member"
},
"county": {
"@container": "@set",
"@type": "@id",
"@id": "ncv:county"
}
},
"@id": "../dataset",
"@type": "rdf:Bag",
"records": {
"NCG11248": {
"@type": "nct:County",
"county": [],
"skos:label": "Orange County",
"skos:note": "Not to be confused with Orange County, CA"
},
"NCG07554": {
"@type": "nct:Community",
"county": [
{
"@id": "NCG11248",
"@type": "nct:County",
"skos:label": "Orange County"
}
],
"skos:label": "Ichley"
},
"NCG03755": {
"@type": "nct:Mountain",
"county": [
{
"@id": "NCG11248",
"@type": "nct:County",
"skos:label": "Orange County"
}
],
"skos:label": "Crawford Mountain"
}
}
}

0 comments on commit 8571228

Please sign in to comment.