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

Distinct blank nodes for intials lists #151

Open
langsamu opened this issue Jun 14, 2018 · 0 comments
Open

Distinct blank nodes for intials lists #151

langsamu opened this issue Jun 14, 2018 · 0 comments

Comments

@langsamu
Copy link
Contributor

Some of the endpoints are based on SPARQL queries that produce blank nodes for intial lists.

For example https://github.com/ukparliament/Data.Api.FixedQuery/blob/4b2f02ad361d07a5393fb27a6d93a5a4099de76d/Parliament.Data.Api.FixedQuery/Sparql/member_a_to_z.sparql#L3

This is legal and works with GROM.

But the result is multiple distinct blank nodes, each with a value.
For example constituency a to z:

_:node20436876 <https://id.parliament.uk/schema/value> "B".
_:node20436877 <https://id.parliament.uk/schema/value> "A".
_:node20436878 <https://id.parliament.uk/schema/value> "C".
_:node20436879 <https://id.parliament.uk/schema/value> "D".

(Another issue addresses the use of uncontrolled predicates here.)

This will results in multiple GROM nodes, each with a value attribute.
I'm wondering whether a single URI node wouldn't be better, resulting in a single GROM node with an array of values.

Like this:

CONSTRUCT {
    <http://example.com/InitialsList> :value ?firstLetter .
}

which would result in

<http://example.com/InitialsList> <https://id.parliament.uk/schema/value> "B", "A", "C", "D" .

@mattrayner what do you think?

@langsamu langsamu changed the title Distinct blank nodes for intial lists Distinct blank nodes for intials lists Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant