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

Bnode Id's Re-used in INSERT queries #61

Open
agpreynolds opened this issue Feb 27, 2014 · 0 comments
Open

Bnode Id's Re-used in INSERT queries #61

agpreynolds opened this issue Feb 27, 2014 · 0 comments
Labels
bug store Related to the RDF store.

Comments

@agpreynolds
Copy link

Hello I have encountered an issue whereby if I insert two sets of triples with blank nodes attached, the blank node ID's are the same for both sets.

For example, running the two insert statements below in separate requests results in each of the recipes having both ingredient lists attached.

INSERT INTO <...> myRecipe:Pizza a recipe:Recipe ; rdfs:label "Pizza" recipe:ingredients [ a recipe:IngredientList ; rdf:_1 [ a recipe:Ingredient ; recipe:food myFood:Chicken ; ] ] INSERT INTO <...> myRecipe:Carbonara a recipe:Recipe ; rdfs:label "Spaghetti Carbonara" recipe:ingredients [ a recipe:IngredientList ; rdf:_1 [ a recipe:Ingredient ; recipe:food myFood:Bacon ; ] ]

Therefore running a query such as the following will return both of the previously inserted recipes

SELECT ?recipe WHERE { ?recipe a recipe:Recipe ; recipe:ingredients ?ingredients . ?ingredients ?p ?s . ?s a recipe:Ingredient ; recipe:food myFood:Chicken }

Note: this is only an issue when using the insert mechanism, the bnodes are parsed correctly when importing from a file in ttl format using the load mechanism.

@k00ni k00ni added bug store Related to the RDF store. labels Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug store Related to the RDF store.
Projects
None yet
Development

No branches or pull requests

2 participants