Comments (5)
You cant specifiy another default graph in a subquery. You could use a federated query instead, but i dont know if you can generate an endpoint locally.
Your query then would look something like this:
SELECT (count(*) as ?s)
WHERE {
?s ?p ?o.
SERVICE <http://wikikg-v2/> {
?s <http://www.wikidata.org/entity/P69> ?o.
?s a "human".
?o <http://schema.org/description> ?ol.
}
}
from rdflib.
or maybe sparql* could do this. But this might take some time. See #1554
from rdflib.
Thanks a lot, Actually my query is selecting from the same default graph so I moved the from statement to the outer query only and it works:
select (count(*) as ?s)
from <http://wikikg-v2/>
where
{
?s ?p ?o.
{
select distinct ?s
where
{
?s <http://www.wikidata.org/entity/P69> ?o.
?s a "human".
?o <http://schema.org/description> ?ol.
}
}
}
from rdflib.
I think this issue should be closed
from rdflib.
I think this issue should be closed
Yes
from rdflib.
Related Issues (20)
- apidocs/rdflib.extras.html varies between builds HOT 1
- 7.0.0: pytest is failing in 2 units and many pytest warnings HOT 2
- Binding user-defined Namespace HOT 1
- Unable to embed rdflib in a python extension
- Bug when using FROM statements HOT 2
- Bug: Comparison and arithmetic on xsd:duration HOT 1
- typo in Container method name: type_of_conatiner --> type_of_container
- Turning rdflib jsonld into a "full processor" (a.o. for schema.org compliance) HOT 3
- Incorrect working when deleting triplets in a BerkeleyDB store HOT 1
- Graph.parse: Guess format when remote source content type is "text/plain"
- Optional skolemize blank nodes on parse HOT 3
- json-ld serialize doesnt failt or raise warning, when producing invalid syntax; type is literal HOT 7
- FAILED test/test_misc/test_parse_file_guess_format.py::TestFileParserGuessFormat::test_warning HOT 2
- RFE: move away from deprecated `html5lib` HOT 1
- BUG : jsonld parser does not randomise bnodes when using local _prefixed identifiers `"@id": "_:mybnode01"` HOT 1
- Adding a value as a list to the graph HOT 4
- Bug in `longturtle` serialization HOT 1
- Rdflib 7.0.0: Inadequate Support for Importing Multiple Prefixes with the Same IRI and Base IRI HOT 2
- Unexpected recursive context inclusion exception HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rdflib.