-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
prefixes of XML attributes are not resolved #322
Comments
Hi Miel! I see your point. The issue is that we cannot make assumptions about attribute values in XML without inspecting the schema, so the safe way is to consider them as literals. The safer thing is to handle these cases in your mappings (I guess you will transform the data anyway). If you still want an IRI from that string, you can always My two cents |
That makes total sense. Thanks @enridaga ! |
btw, I would suggest adding a summary of your answer to the docs where it says "SPARQL Anything reuses namespaces declared ..." |
Hi there! SPARQL-Anything tries to reuse the XML namespaces as much as possible. However, it seems that this only the case for elements; attributes are turned into literals. Isn't that unintuitive?
Example:
<premis:premis xsi:type="premis:intellectualEntity">
[] a premis:premis; xsi:type "premis:intellectualEntity"
[] a premis:premis; xsi:type premis:intellectualEntity
The text was updated successfully, but these errors were encountered: