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

RDFLib / rdflib / 6017747210
90%
master: 91%

Build:
Build:
LAST BUILD BRANCH: v7/docs/graphdb
DEFAULT BRANCH: master
Ran 29 Aug 2023 09:36PM UTC
Jobs 13
Files 118
Run time 7s
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: 90.939% (+0.01%) from 90.925%
6017747210

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>.

6002 of 7397 branches covered (0.0%)

10 of 10 new or added lines in 1 file covered. (100.0%)

18918 of 20803 relevant lines covered (90.94%)

11.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 macos-latest-3.9 - 6017747210.1 29 Aug 2023 09:43PM UTC 0
88.33
2 windows-latest-3.8 - 6017747210.2 29 Aug 2023 09:43PM UTC 0
88.33
3 ubuntu-latest-3.8 - 6017747210.3 29 Aug 2023 09:43PM UTC 0
90.8
4 macos-latest-3.8 - 6017747210.4 29 Aug 2023 09:43PM UTC 0
88.33
5 macos-latest-3.11 - 6017747210.5 29 Aug 2023 09:43PM UTC 0
88.35
6 windows-latest-3.10 - 6017747210.6 29 Aug 2023 09:43PM UTC 0
88.38
7 ubuntu-latest-3.11 - 6017747210.7 29 Aug 2023 09:43PM UTC 0
89.83
8 ubuntu-latest-3.10 - 6017747210.8 29 Aug 2023 09:43PM UTC 0
88.36
9 ubuntu-latest-3.8-min - 6017747210.9 29 Aug 2023 09:43PM UTC 0
90.79
10 ubuntu-latest-3.9 - 6017747210.10 29 Aug 2023 09:43PM UTC 0
88.32
11 macos-latest-3.10 - 6017747210.11 29 Aug 2023 09:43PM UTC 0
88.36
12 windows-latest-3.11 - 6017747210.12 29 Aug 2023 09:43PM UTC 0
88.35
13 windows-latest-3.9 - 6017747210.13 29 Aug 2023 09:43PM UTC 0
88.34
Source Files on build 6017747210
Detailed source file information is not available for this build.
  • Back to Repo
  • 077f4ac3 on github
  • Prev Build on main (#6007858977)
  • Next Build on main (#6028509378)
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