rdflib
Adding blank nodes in triples
The code written below gives the following output: Code: person = BNode() dataStore.add((URIRef(stringrd),FOAF_NS[\'knows\'],person))[详细]
2023-04-05 17:14 分类:问答Problem adding triples in rdflib.store.IOMemory
Whenever I try to add triple into the store using following code it gives me following error. Could you please help me in this regard. Thanks in advance.[详细]
2023-04-04 22:22 分类:问答Writing RDF/XML file from rdf Triples in rdflib
I have got rdf triples with me, now I am interested in ge开发者_开发百科nerating RDF/XML file using rdflib in Python. Could you please give me some sample code to start.[详细]
2023-03-09 01:25 分类:问答Printing/Parsing JSON object from RDF query result
I\'m trying to parse a result from an SPARQL query from Sesame. I found sample code, the relevant part below, and I\'m showing my result below.[详细]
2023-03-03 23:47 分类:问答RDFlib 'on disk' store
After 2 days of research I (a newby) still can\'t figure out what \'on disk\' stores are available in RDFFlib 3.1.0. If you have a working example, that would be nice to see...[详细]
2023-03-02 02:55 分类:问答How to run IN and NOT IN SPARQL statements in python rdflib to remove the intersection of two graphs
开发者_JAVA技巧I\'m trying to use the IN and NOT IN statements (that were if I understand correctly, introduced in SPARQL 1.1) on the python implementation of SPARQL (now in rdfextras) but it seems th[详细]
2023-02-28 08:32 分类:问答how to parse big datasets using RDFLib?
I\'m trying to parse several big graphs with RDFLib 3.0, apparently it handles first one and dies on the second (MemoryError)... looks like MySQL is not supported as store anymore, can you please sugg[详细]
2023-02-24 22:25 分类:问答how to look-up rdf object knowing subject or other way around?
I\'m using RDFLIB to build graphs among 3 data-sets (A, B, C) with ntriples. Goal: graphs contain links among those data-set A->B, B->C and C->A, I want to check consistency of those links by making[详细]
2023-02-14 14:01 分类:问答How to access members of an rdf list with rdflib (or plain sparql)
What is the best way to access the members of an rdf list? I\'m using rdflib (python) but an answer given in plain SPARQL is also ok (this type of answer can be used through rdfextras, a rdflib helper[详细]
2023-02-04 05:18 分类:问答RDFLib: Namespace prefixes in XML serialization
In a Python script using RDFLib 3.0, I get the following XML-Output when serializing my triples: <rdf:RDF[详细]
2023-01-30 11:52 分类:问答