-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is default value if @base is not defined in the metadata description #91
Comments
Not sure. Wouldn't it be more logical to use the reference to the CVS file as base? Ivan
Ivan Herman, W3C |
@iherman: for core tabular data using the location of the CSV file as the base URL is our only option. Pretty much the only place that the URLs manifest in a mapping of core tabular data is for the predicates used to relate each row object to its property values (and even then only in the RDF mapping). However, when a metadata description is supplied, we might have the situation where two independent parties are publishing metadata about the same CSV file. Surely in this case, the predicates used to relate the row object to its property values should reflect the originator of the metadata? (assuming that they didn't already override the |
I am still not convinced, and the fact that (as you say) for a core tabular data we do not have a choice actually reinforces my view (due to consistency). We give quite a panoply of tools to generate URI-s for the conversion result by using the template mechanism in the metadata. Ie, the metadata author can adapt his/her output the way he/she wants. I may be missing something, though. Ivan
Ivan Herman, W3C |
I am a bit concerned about such explicit references to If we try to stick to the form of JSON-LD, but ignore the algorithms, we're likely to invite such miss-understanding. Perhaps both should have something like the following:
Similar wording for |
@gkellogg: I agree with the sentiment - and I have been trying to use the term base URL in favour of
Where the mapping is to plain-old-JSON relative URIs will need to be expanded out - because there is no concept of The wording you supply is a little bit dense for me; I anticipate readers of our spec being none-the-wiser after chewing through that :-) AFAICT,
|
Setting |
As an Inherited Property, All natural language direct annotation properties (including Common Properties - those from external vocabularies) defined in a metadata document can benefit from the multi-lingual goodness of JSON-LD: @language settings and language maps (e.g. those objects like)
(from example 34 in JSON-LD Syntax section 6.5 String Internationalization) |
I've thought about this a bit more; I think it makes sense to have the base URL be that of the CSV file. My rationale is that the URLs generated in the document, say, from a row-level |
I agree, establishing the base of the metadata file can be tricky, particularly given merge semantics. Also, it would be odd for several CSV files sharing a metadata file to use the same base URI. |
I've clarified that the base URL for the metadata document in the absence of the It's good practice for URLs to be taken as relative to the location where they're found. For example, the URLs of any imported metadata documents should be relative to the original metadata document or it will be incredibly confusing. It might be that there are particular properties that should be interpreted as URLs relative to the |
@JeniT: the main uses of base URL in the mapping are:
There may be more; I can cross-ref the mapping docs at some point ... but that said, I'm fairly happy with the mapping docs asserting that the base URL for the mapping is the CSV file location . |
When processing the metadata, certainly relative URLs should be considered to the metadata document. This should not be affected by merging, as merging happens into the selected metadata document (user-specified metadata and data from the CSV file itself). However, when evaluating templates which are relative URLs, might it not be the case that the resulting URL should be relative the the CSV file? |
I think in many cases the I suggest that to handle the requirement for URI templates to sometimes be URLs that are relative to the processed CSV file, we have another special variable, eg |
Works for me. Ivan
Ivan Herman, W3C |
In some of the work I've been doing, the default identifier for the Table metadata comes from |
Relates to #106 |
Resolved at Feb F2F. Link properties are resolved against the base url, maybe the @base from the context, or it may be the location of the metadata file, during normalization of the metadata file, and prior to merge. URL template properties are expanded (variable references replaced by values from a particular row) into a URL, which is then expanded to resolve prefixes, and against a base URL which is the absolute, resolved, table |
Looking at the text, I believe this action can be closed. We define |
Yes, this is done. |
The metadata vocab doc section 3.2 Top Level Properties talks about base URL - defined by
@base
.What is the behaviour expected when
@base
is not defined? Is the base URL anticipated to be the location from which that metadata description was retrieved? (I think this is the case - but I don't see this in the doc!)Given the ambiguity, I think that this is important the the metadata doc is amended to clarify this 'undefined' case.
The text was updated successfully, but these errors were encountered: