Resource class should "unbox" Resource instances on add · Issue #215 · RDFLib/rdflib (original) (raw)

@gromgull

Description

@gromgull

gromgull

opened

on May 24, 2012

Resource instances does auto-boxing of URIRefs and BNodes when reading:

https://github.com/RDFLib/rdflib/blob/master/rdflib/resource.py#L400

BUT when adding, attempting to add a triple will add the Resource object to the graph, not the identifier. See here:

http://answers.semanticweb.com/questions/16483/rdflib-serialize-a-graph-containing-subclassed-resources

This should be fixed :)

Metadata

Metadata

Assignees

No one assigned

Labels

No labels

No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions