You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current proposal is to provide prefixes in a variable such as "bald_prefixes". In this case the parser knows where to get the prefixes from so not having the double underscore in a prefix declaration is not a problem.
Pros might be:
Requires less characters and therefore might result in less user entered errors.
Cons:
Does mean a bit more processing by the bald library (and a code change/change to examples).
The double underscore pattern - pros:
movable to other parts of the netCDF headers, i.e. outside of a variable which solely contains "bald_prefixes".
current behaviour
Cons
Could result in user errors? Extraneous characters.
Activity
marqh commentedon Oct 18, 2017
for example:
https://github.com/binary-array-ld/bald/blob/master/lib/bald/tests/integration/CDL/array_reference.cdl#L13
should the double underscore
__always be implied? Such thatmarqh commentedon Oct 18, 2017
For comparison, the terse triple language (ttl) includes the prefix separator (':') in the prefix definition:
https://github.com/binary-array-ld/bald/blob/master/lib/bald/tests/integration/TTL/array_reference.ttl#L1
I suspect it was this pattern that we initially adopted.
jyucsiro commentedon Nov 8, 2017
The other pattern relevant here for the alternative approach is taken from JSON-LD - see https://json-ld.org/spec/latest/json-ld/
Example:
{
"@context": {
"foaf": "http://xmlns.com/foaf/0.1/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"name": "foaf:name",
"foaf:age": {
"@id": "foaf:age",
"@type": "xsd:integer"
},
"http://xmlns.com/foaf/0.1/homepage": {
"@type": "@id"
}
},
...
}
jyucsiro commentedon Nov 8, 2017
The current proposal is to provide prefixes in a variable such as "bald_prefixes". In this case the parser knows where to get the prefixes from so not having the double underscore in a prefix declaration is not a problem.
Pros might be:
Cons:
The double underscore pattern - pros:
Cons