Skip to content
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

Improve blank node terms while parsing RDF/XML #63

Open
wouterbeek opened this issue Jul 25, 2017 · 0 comments
Open

Improve blank node terms while parsing RDF/XML #63

wouterbeek opened this issue Jul 25, 2017 · 0 comments

Comments

@wouterbeek
Copy link
Contributor

Blank nodes that are generated while parsing RDF/XML look a bit complicated. A simple example:

?- rdf_load('http://www.gemeentegeschiedenis.nl/gemeentenaam/rdfxml/Adorp').
?- rdf(S, 'http://www.opengis.net/ont/geosparql#asWKT', _).
S = '_:http://www.gemeentegeschiedenis.nl/gemeentenaam/rdfxml/Adorp#_:Description1',

This seems to be structured as follows:

'_:' + <SOURCE> + '_:' + <DOCUMENT-SCOPED-ID>

It would be nice if an alternative blank node prefix could be passed as an option, e.g., I would like blank nodes to look as follows:

<BLANK-NODE-PREFIX> + <DOCUMENT-SCOPED-ID>

The default value for <BLANK-NODE-PREFIX> could be '_:' + <SOURCE>.

It would also be nice if the <DOCUMENT-SCOPED-ID> would simply be an integer. I'm not sure what Description adds here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant