Skip to content

Commit 93dc670

Browse files
committed
update example configs
1 parent 0749825 commit 93dc670

2 files changed

Lines changed: 34 additions & 18 deletions

File tree

examples/config/cvoc-conf.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[{
2-
"field-name": "cvocDemo",
3-
"term-uri-field": "cvocDemoTermURI",
2+
"field-name": "compoundDemo",
3+
"term-uri-field": "compoundDemoTermURI",
44
"cvoc-url": "https://skosmos.dev.finto.fi/",
55
"js-url": "https://gdcc.github.io/dataverse-external-vocab-support/scripts/skosmos.js",
66
"protocol": "skosmos",
@@ -15,9 +15,9 @@
1515
}
1616
},
1717
"managed-fields": {
18-
"vocabularyName": "cvocDemoVocabulary",
19-
"termName": "cvocDemoTerm",
20-
"vocabularyUri": "cvocDemoVocabularyURI"
18+
"vocabularyName": "compoundDemoVocabulary",
19+
"termName": "compoundDemoTerm",
20+
"vocabularyUri": "compoundDemoVocabularyURI"
2121
},
2222
"retrieval-filtering": {
2323
"@context": {

examples/config/cvoc-conf.singlevocab.json

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
[{
2-
"field-name": "cvocDemo",
3-
"term-uri-field": "cvocDemoTermURI",
2+
"field-name": "compoundDemo",
3+
"term-uri-field": "compoundDemoTermURI",
44
"cvoc-url": "https://skosmos.dev.finto.fi/",
5-
"js-url": "/resources/js/skosmos.js",
5+
"js-url": "https://gdcc.github.io/dataverse-external-vocab-support/scripts/skosmos.js",
66
"protocol": "skosmos",
77
"retrieval-uri": "https://skosmos.dev.finto.fi/rest/v1/data?uri={0}",
88
"term-parent-uri": "",
99
"languages":"en, fr, es, ru",
1010
"vocabs": {
11-
"unesco": "http://skos.um.es/unescothes/CS000"
11+
"unesco": {
12+
"vocabularyUri": "http://skos.um.es/unescothes/CS000",
13+
"uriSpace": "http://skos.um.es/unescothes/"
14+
}
1215
},
1316
"managed-fields": {
14-
"vocabularyName": "cvocDemoVocabulary",
15-
"termName": "cvocDemoTerm",
16-
"vocabularyUri": "cvocDemoVocabularyURI"
17+
"vocabularyName": "compoundDemoVocabulary",
18+
"termName": "compoundDemoTerm",
19+
"vocabularyUri": "compoundDemoVocabularyURI"
1720
},
1821
"retrieval-filtering": {
1922
"@context": {
@@ -44,16 +47,22 @@
4447
{
4548
"field-name": "creator",
4649
"term-uri-field": "creator",
47-
"js-url": "/resources/js/people.js",
50+
"js-url": "https://gdcc.github.io/dataverse-external-vocab-support/scripts/people.js",
4851
"protocol": "orcid",
4952
"retrieval-uri": "https://pub.orcid.org/v3.0/{0}/person",
53+
"allow-free-text": true,
5054
"prefix": "https://orcid.org/",
5155
"managed-fields": {},
5256
"languages":"",
57+
"vocabs": {
58+
"orcid": {
59+
"uriSpace": "https://orcid.org/"
60+
}
61+
},
5362
"retrieval-filtering": {
5463
"@context": {
5564
"personName": "https://schema.org/name",
56-
"scheme": "https://schema.org/identifier"
65+
"scheme": "http://www.w3.org/2004/02/skos/core#inScheme"
5766
},
5867
"personName": {
5968
"pattern": "{0}, {1}",
@@ -66,18 +75,25 @@
6675
"scheme": {
6776
"pattern": "ORCID"
6877
},
69-
"@type": "https://schema.org/Person"
78+
"@type": {
79+
"pattern": "https://schema.org/Person"
80+
}
7081
}
7182
},
7283
{
7384
"field-name": "skosterm",
7485
"term-uri-field": "skosterm",
7586
"cvoc-url": "https://skosmos.dev.finto.fi/",
76-
"js-url": "/resources/js/skosmos.js",
87+
"js-url": "https://gdcc.github.io/dataverse-external-vocab-support/scripts/skosmos.js",
7788
"protocol": "skosmos",
7889
"retrieval-uri": "https://skosmos.dev.finto.fi/rest/v1/data?uri={0}",
79-
"vocabs":{"unesco": "http://skos.um.es/unescothes/CS000"},
80-
"languages":"en, fr, es, ru",
90+
"languages":"en, uk, fr, ru",
91+
"vocabs":{
92+
"unesco": {
93+
"vocabularyUri": "http://skos.um.es/unescothes/CS000",
94+
"uriSpace": "http://skos.um.es/unescothes/"
95+
}
96+
},
8197
"managed-fields": {},
8298
"retrieval-filtering": {
8399
"@context": {

0 commit comments

Comments
 (0)