Skip to content

Commit

Permalink
update lod fixtures to use ldpaths instead of predicates
Browse files Browse the repository at this point in the history
None of these changes impact tests.
  • Loading branch information
elrayle committed Nov 21, 2019
1 parent 941dec5 commit edb6237
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"QA_CONFIG_VERSION": "2.0",
"prefixes": {
"loc": "http://id.loc.gov/vocabulary/identifiers/"
},
"term": {
"url": {
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
Expand Down Expand Up @@ -41,8 +44,8 @@
},
"term_id": "URI",
"results": {
"id_predicate": "http://id.loc.gov/vocabulary/identifiers/lccn",
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel"
"id_ldpath": "loc:lccn",
"label_ldpath": "skos:prefLabel"
}
},
"search": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"QA_CONFIG_VERSION": "2.0",
"prefixes": {
"loc": "http://id.loc.gov/vocabulary/identifiers/"
},
"term": {},
"search": {
"url": {
Expand Down Expand Up @@ -39,10 +42,10 @@
},
"language": [ "en" ],
"results": {
"id_predicate": "http://id.loc.gov/vocabulary/identifiers/lccn",
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
"altlabel_predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
"sort_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel"
"id_ldpath": "loc:lccn",
"label_ldpath": "skos:prefLabel",
"altlabel_ldpath": "skos:altLabel",
"sort_ldpath": "skos:prefLabel"
},
"subauthorities": {
"subjects": "subjects",
Expand Down
9 changes: 6 additions & 3 deletions spec/fixtures/authorities/linked_data/lod_sort.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"QA_CONFIG_VERSION": "2.0",
"prefixes": {
"dcterms": "http://purl.org/dc/terms/"
},
"term": {},
"search": {
"url": {
Expand All @@ -20,9 +23,9 @@
"query": "query"
},
"results": {
"id_predicate": "http://purl.org/dc/terms/identifier",
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
"sort_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel"
"id_ldpath": "dcterms:identifier",
"label_ldpath": "skos:prefLabel",
"sort_ldpath": "skos:prefLabel"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"QA_CONFIG_VERSION": "2.0",
"prefixes": {
"loc": "http://id.loc.gov/vocabulary/identifiers/"
},
"term": {
"url": {
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
Expand All @@ -20,8 +23,8 @@
},
"term_id": "ID",
"results": {
"id_predicate": "http://id.loc.gov/vocabulary/identifiers/lccn",
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel"
"id_ldpath": "loc:lccn",
"label_ldpath": "skos:prefLabel"
}
},
"search": {}
Expand Down
15 changes: 9 additions & 6 deletions spec/fixtures/authorities/linked_data/lod_term_only_config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"QA_CONFIG_VERSION": "2.0",
"prefixes": {
"loc": "http://id.loc.gov/vocabulary/identifiers/"
},
"term": {
"url": {
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
Expand Down Expand Up @@ -43,12 +46,12 @@
"term_id": "ID",
"language": [ "en" ],
"results": {
"id_predicate": "http://id.loc.gov/vocabulary/identifiers/lccn",
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
"altlabel_predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
"broader_predicate": "http://www.w3.org/2004/02/skos/core#broader",
"narrower_predicate": "http://www.w3.org/2004/02/skos/core#narrower",
"sameas_predicate": "http://www.w3.org/2004/02/skos/core#exactMatch"
"id_ldpath": "loc:lccn",
"label_ldpath": "skos:prefLabel",
"altlabel_ldpath": "skos:altLabel",
"broader_ldpath": "skos:broader",
"narrower_ldpath": "skos:narrower",
"sameas_ldpath": "skos:exactMatch"
},
"subauthorities": {
"term_sub1_key": "term_sub1_name",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"QA_CONFIG_VERSION": "2.0",
"prefixes": {
"loc": "http://id.loc.gov/vocabulary/identifiers/"
},
"term": {
"url": {
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
Expand All @@ -20,8 +23,8 @@
},
"term_id": "URI",
"results": {
"id_predicate": "http://purl.org/dc/terms/identifier",
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel"
"id_ldpath": "loc:lccn",
"label_ldpath": "skos:prefLabel"
}
},
"search": {}
Expand Down

0 comments on commit edb6237

Please sign in to comment.