-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
139 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/test/resources/com/apicatalog/jsonld/test/issue171-frame.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
47
src/test/resources/com/apicatalog/jsonld/test/issue171-in.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
55
src/test/resources/com/apicatalog/jsonld/test/issue171-out.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters