Skip to content

Commit edb6237

Browse files
committed
update lod fixtures to use ldpaths instead of predicates
None of these changes impact tests.
1 parent 941dec5 commit edb6237

6 files changed

Lines changed: 37 additions & 19 deletions

File tree

spec/fixtures/authorities/linked_data/lod_encoding_config.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"QA_CONFIG_VERSION": "2.0",
3+
"prefixes": {
4+
"loc": "http://id.loc.gov/vocabulary/identifiers/"
5+
},
36
"term": {
47
"url": {
58
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
@@ -41,8 +44,8 @@
4144
},
4245
"term_id": "URI",
4346
"results": {
44-
"id_predicate": "http://id.loc.gov/vocabulary/identifiers/lccn",
45-
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel"
47+
"id_ldpath": "loc:lccn",
48+
"label_ldpath": "skos:prefLabel"
4649
}
4750
},
4851
"search": {

spec/fixtures/authorities/linked_data/lod_search_only_config.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"QA_CONFIG_VERSION": "2.0",
3+
"prefixes": {
4+
"loc": "http://id.loc.gov/vocabulary/identifiers/"
5+
},
36
"term": {},
47
"search": {
58
"url": {
@@ -39,10 +42,10 @@
3942
},
4043
"language": [ "en" ],
4144
"results": {
42-
"id_predicate": "http://id.loc.gov/vocabulary/identifiers/lccn",
43-
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
44-
"altlabel_predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
45-
"sort_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel"
45+
"id_ldpath": "loc:lccn",
46+
"label_ldpath": "skos:prefLabel",
47+
"altlabel_ldpath": "skos:altLabel",
48+
"sort_ldpath": "skos:prefLabel"
4649
},
4750
"subauthorities": {
4851
"subjects": "subjects",

spec/fixtures/authorities/linked_data/lod_sort.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"QA_CONFIG_VERSION": "2.0",
3+
"prefixes": {
4+
"dcterms": "http://purl.org/dc/terms/"
5+
},
36
"term": {},
47
"search": {
58
"url": {
@@ -20,9 +23,9 @@
2023
"query": "query"
2124
},
2225
"results": {
23-
"id_predicate": "http://purl.org/dc/terms/identifier",
24-
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
25-
"sort_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel"
26+
"id_ldpath": "dcterms:identifier",
27+
"label_ldpath": "skos:prefLabel",
28+
"sort_ldpath": "skos:prefLabel"
2629
}
2730
}
2831
}

spec/fixtures/authorities/linked_data/lod_term_id_param_config.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"QA_CONFIG_VERSION": "2.0",
3+
"prefixes": {
4+
"loc": "http://id.loc.gov/vocabulary/identifiers/"
5+
},
36
"term": {
47
"url": {
58
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
@@ -20,8 +23,8 @@
2023
},
2124
"term_id": "ID",
2225
"results": {
23-
"id_predicate": "http://id.loc.gov/vocabulary/identifiers/lccn",
24-
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel"
26+
"id_ldpath": "loc:lccn",
27+
"label_ldpath": "skos:prefLabel"
2528
}
2629
},
2730
"search": {}

spec/fixtures/authorities/linked_data/lod_term_only_config.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"QA_CONFIG_VERSION": "2.0",
3+
"prefixes": {
4+
"loc": "http://id.loc.gov/vocabulary/identifiers/"
5+
},
36
"term": {
47
"url": {
58
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
@@ -43,12 +46,12 @@
4346
"term_id": "ID",
4447
"language": [ "en" ],
4548
"results": {
46-
"id_predicate": "http://id.loc.gov/vocabulary/identifiers/lccn",
47-
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel",
48-
"altlabel_predicate": "http://www.w3.org/2004/02/skos/core#altLabel",
49-
"broader_predicate": "http://www.w3.org/2004/02/skos/core#broader",
50-
"narrower_predicate": "http://www.w3.org/2004/02/skos/core#narrower",
51-
"sameas_predicate": "http://www.w3.org/2004/02/skos/core#exactMatch"
49+
"id_ldpath": "loc:lccn",
50+
"label_ldpath": "skos:prefLabel",
51+
"altlabel_ldpath": "skos:altLabel",
52+
"broader_ldpath": "skos:broader",
53+
"narrower_ldpath": "skos:narrower",
54+
"sameas_ldpath": "skos:exactMatch"
5255
},
5356
"subauthorities": {
5457
"term_sub1_key": "term_sub1_name",

spec/fixtures/authorities/linked_data/lod_term_uri_param_config.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"QA_CONFIG_VERSION": "2.0",
3+
"prefixes": {
4+
"loc": "http://id.loc.gov/vocabulary/identifiers/"
5+
},
36
"term": {
47
"url": {
58
"@context": "http://www.w3.org/ns/hydra/context.jsonld",
@@ -20,8 +23,8 @@
2023
},
2124
"term_id": "URI",
2225
"results": {
23-
"id_predicate": "http://purl.org/dc/terms/identifier",
24-
"label_predicate": "http://www.w3.org/2004/02/skos/core#prefLabel"
26+
"id_ldpath": "loc:lccn",
27+
"label_ldpath": "skos:prefLabel"
2528
}
2629
},
2730
"search": {}

0 commit comments

Comments
 (0)