-
Notifications
You must be signed in to change notification settings - Fork 580
Open
Description
I would have expected the following to return a size of 4 for the dataset, but it returns 3.
def test_mem_size():
data = f"""
<http://example.com/s> <{RDF.type}> <{SKOS.Concept}> <urn:graph:a> .
<http://example.com/s> <{SKOS.prefLabel}> "Label" <urn:graph:a> .
<http://example.com/s> <{SKOS.prefLabel}> "Label" <urn:graph:b> .
<http://example.com/s> <{SKOS.definition}> "Definition" .
"""
ds = Dataset()
ds.parse(data=data, format="nquads")
assert len(ds) == 4Not confirmed yet but the dataset appears to be calculating the total number of triples instead of quads. When I remove one of the two skos:prefLabel statements, the count is still 3.
Metadata
Metadata
Assignees
Labels
No labels