• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RDFLib / rdflib / 6017747210 / 5
90%
master: 91%

Build:
Build:
LAST BUILD BRANCH: v7/docs/graphdb
DEFAULT BRANCH: master
Ran 29 Aug 2023 09:43PM UTC
Files 118
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Aug 2023 09:31PM UTC coverage: 88.355% (+0.02%) from 88.34%
6017747210.5

push

github

web-flow
fix: `queryGraph` selection for `query` and `update` (#2546)

`Store.query` and `Store.update` have a parameter `queryGraph`, which
presumably specifies the initial [active
graph](https://www.w3.org/TR/sparql11-query/#sparqlDataset).

When SPARQL is evaluated against a `Dataset`, the initial active graph
should be the default graph
[[ref](https://www.w3.org/TR/sparql11-query/#sparqlAlgebraEval)],
however, when calling `rdflib.graph.Graph.query` or
`rdflib.graph.Graph.update`, they were passing
`rdflib.graph.Dataset.identifier` as the value of `queryGraph` to
`Store.query` and `Store.update`. The passed value would not have been
the identifier of the default graph of the Dataset, and would instead
have been an identifier that has really no meaning whatsoever (see
<https://github.com/RDFLib/rdflib/issues/2537>).

This change fixes the selection of the initial active graph by passing
`ConjunctiveGraph.default_context.identifier` if the `Graph.query` or
`Graph.update` method is called on a `ConjunctiveGraph` and
`ConjunctiveGraph.default_union` is `False`.

Related issues:
- Fixes <https://github.com/RDFLib/rdflib/issues/2538>.

6507 of 8112 branches covered (0.0%)

18384 of 20807 relevant lines covered (88.35%)

0.88 hits per line

Source Files on job macos-latest-3.11 - 6017747210.5
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 6017747210
  • 077f4ac3 on github
  • Prev Job for on main (#6007858977.2)
  • Next Job for on main (#6028509378.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc