A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/RDFLib/rdflib/issues/432 below:

Trig parser can creating multiple contexts for the default graph · Issue #432 · RDFLib/rdflib · GitHub

If TriG containing triples in the default graph are specified with and without braces, they end up in 2 separate contexts, e.g.:

import rdflib

data = """
@prefix : <http://example.com/> .
<> <b> <c> .
{ <d> <e> <f> . }
"""
g = rdflib.ConjunctiveGraph()                                                  
g.parse(data=data, format='trig')                                              
print len(list(g.contexts()))

Prints:

2

whereas it should contain only 1 context, i.e. a single default graph that both those triples should belong to.

I've added a unit test for this to #431 .


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4