Skip to content

Commit

Permalink
Unify naming to camelCase convention (#150) (#166)
Browse files Browse the repository at this point in the history
* Unify naming to camelCase convention (#150)

While snake_case took over in the draft, camelCase is the common
convention in the manifest, so this seems to be the sensible choice

* Update draft examples and schemas for removed fields

Noticed while unifying naming for #150

* Update "This Draft" section for camelCase naming (#150, #162)
  • Loading branch information
fsteeg authored Jun 13, 2024
1 parent e53a418 commit 55ce38e
Show file tree
Hide file tree
Showing 21 changed files with 82 additions and 107 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"propose_properties": true,
"property_settings": [
"proposeProperties": true,
"propertySettings": [
{
"name": "limit",
"label": "Limit",
"type": "number",
"default": 0,
"help_text": "Maximum number of values to return per row (0 for no limit)"
"helpText": "Maximum number of values to return per row (0 for no limit)"
},
{
"name": "content",
"label": "Content",
"type": "select",
"default": "literal",
"help_text": "Content type: ID or literal",
"helpText": "Content type: ID or literal",
"choices": [
{
"value": "id",
Expand Down
2 changes: 1 addition & 1 deletion draft/examples/manifest/invalid/feature-view.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"view": {
"url": "https://viaf.org/viaf/{id}"
},
"feature_view": {
"featureView": {
"url": "https://vocab.getty.edu/recon/features/"
}
}
12 changes: 2 additions & 10 deletions draft/examples/manifest/invalid/opencorporates.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,8 @@
"height": 300
},
"suggest": {
"entity": {
"service_url": "https://opencorporates.com",
"service_path": "/reconcile/suggest",
"flyout_service_path": "/reconcile/flyout"
},
"property": {
"service_url": "https://opencorporates.com",
"service_path": "/reconcile/suggest/properties",
"flyout_service_path": "/reconcile/flyout/properties"
}
"entity": true,
"property": true
},
"defaultTypes": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
"url": "https://reconcile.ror.org/reconcile"
},
"suggest": {
"entity": {
"flyout_service_path": "/flyout?id={id}",
"service_path": "/suggest",
"service_url": "https://reconcile.ror.org"
}
"entity": true
},
"preview": {
"width": 400,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,23 @@
}
],
"extend": {
"property_settings": [
"propertySettings": [
{
"default": 10,
"help_text": "Maximum number of values to return per row (maximum: 1000)",
"helpText": "Maximum number of values to return per row (maximum: 1000)",
"label": "Limit",
"name": "limit",
"type": "number"
},
{
"default": "geo,organizations,slub-resources,persons,events,topics,works, ",
"help_text": "Which Entity-Type to use, allwed values: http://schema.org/CreativeWork, http://schema.org/Work, http://schema.org/Event, http://schema.org/Place, http://schema.org/Person, http://schema.org/Book, http://schema.org/Organization, http://schema.org/Topic, http://schema.org/CreativeWorkSeries",
"helpText": "Which Entity-Type to use, allwed values: http://schema.org/CreativeWork, http://schema.org/Work, http://schema.org/Event, http://schema.org/Place, http://schema.org/Person, http://schema.org/Book, http://schema.org/Organization, http://schema.org/Topic, http://schema.org/CreativeWorkSeries",
"label": "Typ",
"name": "type",
"type": "string"
}
],
"propose_properties": {
"service_path": "/reconcile/properties",
"service_url": "http://data.slub-dresden.de"
}
"proposeProperties": true
},
"name": "SLUB LOD reconciliation for OpenRefine",
"preview": {
Expand Down
2 changes: 1 addition & 1 deletion draft/examples/manifest/valid/feature-view.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"view": {
"url": "https://viaf.org/viaf/{id}"
},
"feature_view": {
"featureView": {
"url": "https://vocab.getty.edu/recon/features/{id}"
}
}
8 changes: 4 additions & 4 deletions draft/examples/manifest/valid/lobid-gnd.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@
"width": 320
},
"extend": {
"property_settings": [
"propertySettings": [
{
"name": "limit",
"label": "Limit",
"type": "number",
"default": 0,
"help_text": "Maximum number of values to return per row (0 for no limit)"
"helpText": "Maximum number of values to return per row (0 for no limit)"
},
{
"name": "content",
"label": "Content",
"type": "select",
"default": "literal",
"help_text": "Content type: ID or literal",
"helpText": "Content type: ID or literal",
"choices": [
{
"value": "id",
Expand All @@ -75,7 +75,7 @@
]
}
],
"propose_properties": true
"proposeProperties": true
},
"suggest": {
"property": true,
Expand Down
12 changes: 6 additions & 6 deletions draft/examples/manifest/valid/wikidata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
"logo": "https://tools.wmflabs.org/openrefine-wikidata/logo.png",
"serviceVersion": "1.2.3",
"extend": {
"property_settings": [
"propertySettings": [
{
"name": "limit",
"label": "Limit",
"help_text": "Maximum number of values to return per row (0 for no limit)",
"helpText": "Maximum number of values to return per row (0 for no limit)",
"type": "number",
"default": 0
},
{
"name": "rank",
"label": "Ranks",
"type": "select",
"help_text": "Filter statements by rank",
"helpText": "Filter statements by rank",
"choices": [
{
"name": "Any rank",
Expand All @@ -42,7 +42,7 @@
"name": "references",
"label": "References",
"type": "select",
"help_text": "Filter statements by their references",
"helpText": "Filter statements by their references",
"choices": [
{
"name": "Any statement",
Expand All @@ -62,12 +62,12 @@
{
"name": "count",
"label": "Return counts instead of values",
"help_text": "The number of values will be returned.",
"helpText": "The number of values will be returned.",
"type": "checkbox",
"default": false
}
],
"propose_properties": true
"proposeProperties": true
},
"defaultTypes": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
"pid": "affiliation",
"v": "http://d-nb.info/gnd/2022139-3"
}
],
"type_strict": "should"
]
},
{
"type": "DifferentiatedPerson",
Expand All @@ -33,8 +32,7 @@
"pid": "affiliation",
"v": "http://d-nb.info/gnd/2022139-3"
}
],
"type_strict": "should"
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"conditions": [
{
"match_type": "name",
"matchType": "name",
"v": "Christel Hanewinckel"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"conditions": [
{
"match_type": "property",
"matchType": "property",
"pid": "uid",
"v": "27eb892afbb2"
}
Expand All @@ -11,7 +11,7 @@
{
"conditions": [
{
"match_type": "property",
"matchType": "property",
"pid": "uid",
"v": "ab09da9dd37e"
}
Expand Down
28 changes: 14 additions & 14 deletions draft/examples/reconciliation-query-batch/valid/example-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@
"limit": 5,
"conditions": [
{
"match_type": "name",
"matchType": "name",
"v": "Christel Hanewinckel"
},
{
"match_type": "property",
"matchType": "property",
"pid": "professionOrOccupation",
"v": "Politik*",
"required": false,
"match_quantifier": "any",
"match_qualifier": "WildcardMatch"
"matchQuantifier": "any",
"matchQualifier": "WildcardMatch"
},
{
"match_type": "property",
"matchType": "property",
"pid": "affiliation",
"v": "http://d-nb.info/gnd/2022139-3",
"required": false,
"match_quantifier": "any",
"match_qualifier": "ExactMatch"
"matchQuantifier": "any",
"matchQualifier": "ExactMatch"
}
]
},
Expand All @@ -31,24 +31,24 @@
"limit": 5,
"conditions": [
{
"match_type": "name",
"matchType": "name",
"v": "Franz Thönnes"
},
{
"match_type": "property",
"matchType": "property",
"pid": "professionOrOccupation",
"v": "Politik*",
"required": false,
"match_quantifier": "any",
"match_qualifier": "WildcardMatch"
"matchQuantifier": "any",
"matchQualifier": "WildcardMatch"
},
{
"match_type": "property",
"matchType": "property",
"pid": "affiliation",
"v": "http://d-nb.info/gnd/2022139-3",
"required": false,
"match_quantifier": "any",
"match_qualifier": "ExactMatch"
"matchQuantifier": "any",
"matchQualifier": "ExactMatch"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
{
"conditions": [
{
"match_type": "name",
"matchType": "name",
"v": "Hans-Eberhard Urbaniak"
}
]
},
{
"conditions": [
{
"match_type": "name",
"matchType": "name",
"v": "Ernst Schwanhold"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"limit": 5,
"conditions": [
{
"match_type": "name",
"matchType": "name",
"v": "Christel Hanewinckel"
},
{
"match_type": "property",
"matchType": "property",
"pid": "professionOrOccupation",
"v": [
"Politik*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"conditions": [
{
"match_type": "property",
"matchType": "property",
"pid": "uid",
"v": "27eb892afbb2"
}
Expand All @@ -12,7 +12,7 @@
{
"conditions": [
{
"match_type": "property",
"matchType": "property",
"pid": "uid",
"v": "ab09da9dd37e"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"lang": "en",
"conditions": [
{
"match_type": "name",
"matchType": "name",
"v": "Deng Shuping"
},
{
"match_type": "property",
"matchType": "property",
"pid": "professionOrOccupation",
"v": "art historian"
},
{
"match_type": "property",
"matchType": "property",
"pid": "variantName",
"v": "鄧淑蘋",
"lang": "zh-Hant"
Expand Down
4 changes: 2 additions & 2 deletions draft/examples/suggest-properties-response/valid/example.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "coordinate location",
"description": "geocoordinates of the subject. For Earth, please note that only WGS84 coordinating system is supported at the moment",
"id": "P625",
"match_qualifiers": [
"matchQualifiers": [
{"id": "ExactMatch", "name": "Exact match of the coordinates"},
{"id": "DecimalPlaces-N", "name": "Match the coordinates with a precision of N decimal places"}
]
Expand All @@ -13,7 +13,7 @@
"name": "place of birth",
"description": "most specific known (e.g. city instead of country, or hospital instead of city) birth location of a person, animal or fictional character",
"id": "P19",
"match_qualifiers": [
"matchQualifiers": [
{"id": "schema:containsPlace", "name": "Containment relation between a place and another that it contains"},
{"id": "schema:containedInPlace", "name": "Containment relation between a place and another that contains it"}
]
Expand Down
Loading

0 comments on commit 55ce38e

Please sign in to comment.