From edb6237d5fdccbee4dde3853d38ff2693e165c31 Mon Sep 17 00:00:00 2001 From: "E. Lynette Rayle" Date: Thu, 21 Nov 2019 16:18:42 -0500 Subject: [PATCH] update lod fixtures to use ldpaths instead of predicates None of these changes impact tests. --- .../linked_data/lod_encoding_config.json | 7 +++++-- .../linked_data/lod_search_only_config.json | 11 +++++++---- .../authorities/linked_data/lod_sort.json | 9 ++++++--- .../linked_data/lod_term_id_param_config.json | 7 +++++-- .../linked_data/lod_term_only_config.json | 15 +++++++++------ .../linked_data/lod_term_uri_param_config.json | 7 +++++-- 6 files changed, 37 insertions(+), 19 deletions(-) diff --git a/spec/fixtures/authorities/linked_data/lod_encoding_config.json b/spec/fixtures/authorities/linked_data/lod_encoding_config.json index 3646a445..fa21c590 100644 --- a/spec/fixtures/authorities/linked_data/lod_encoding_config.json +++ b/spec/fixtures/authorities/linked_data/lod_encoding_config.json @@ -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", @@ -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": { diff --git a/spec/fixtures/authorities/linked_data/lod_search_only_config.json b/spec/fixtures/authorities/linked_data/lod_search_only_config.json index ef5843c6..53011caf 100644 --- a/spec/fixtures/authorities/linked_data/lod_search_only_config.json +++ b/spec/fixtures/authorities/linked_data/lod_search_only_config.json @@ -1,5 +1,8 @@ { "QA_CONFIG_VERSION": "2.0", + "prefixes": { + "loc": "http://id.loc.gov/vocabulary/identifiers/" + }, "term": {}, "search": { "url": { @@ -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", diff --git a/spec/fixtures/authorities/linked_data/lod_sort.json b/spec/fixtures/authorities/linked_data/lod_sort.json index 184ef707..eaa6f088 100644 --- a/spec/fixtures/authorities/linked_data/lod_sort.json +++ b/spec/fixtures/authorities/linked_data/lod_sort.json @@ -1,5 +1,8 @@ { "QA_CONFIG_VERSION": "2.0", + "prefixes": { + "dcterms": "http://purl.org/dc/terms/" + }, "term": {}, "search": { "url": { @@ -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" } } } diff --git a/spec/fixtures/authorities/linked_data/lod_term_id_param_config.json b/spec/fixtures/authorities/linked_data/lod_term_id_param_config.json index 320096f5..c64f2c26 100644 --- a/spec/fixtures/authorities/linked_data/lod_term_id_param_config.json +++ b/spec/fixtures/authorities/linked_data/lod_term_id_param_config.json @@ -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", @@ -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": {} diff --git a/spec/fixtures/authorities/linked_data/lod_term_only_config.json b/spec/fixtures/authorities/linked_data/lod_term_only_config.json index e9d019ce..8687342e 100644 --- a/spec/fixtures/authorities/linked_data/lod_term_only_config.json +++ b/spec/fixtures/authorities/linked_data/lod_term_only_config.json @@ -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", @@ -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", diff --git a/spec/fixtures/authorities/linked_data/lod_term_uri_param_config.json b/spec/fixtures/authorities/linked_data/lod_term_uri_param_config.json index 5d9def5c..a86b68d4 100644 --- a/spec/fixtures/authorities/linked_data/lod_term_uri_param_config.json +++ b/spec/fixtures/authorities/linked_data/lod_term_uri_param_config.json @@ -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", @@ -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": {}