Continuation of turning kinds of term into own, public types (see #34 )
turned mod _bnode_id into pub mod blank_node
Refactored BNodeId to new-type struct BlankNode
Aligned BlankNode interface with newly created Variable
BlankNode::new() and Term::new_bnode() now fail correctly if not N3 [1]
Adapted tests accordingly
Integrated BlankNode into Term
Minor corrections in mod variable
[1] This is a significant change but this is more aligned to the way variables are handled.
I think the next parts IRI and literal will take longer as they are way more complex as variables and blank nodes (in terms of implementation). Probably, I will create a WIP-PR so you can watch the progress and we can discuss certain changes.
Continuation of turning kinds of term into own, public types (see #34 )
_bnode_id
into pub modblank_node
BNodeId
to new-type structBlankNode
BlankNode
interface with newly createdVariable
BlankNode::new()
andTerm::new_bnode()
now fail correctly if not N3 [1]BlankNode
intoTerm
variable
[1] This is a significant change but this is more aligned to the way variables are handled.
I think the next parts IRI and literal will take longer as they are way more complex as variables and blank nodes (in terms of implementation). Probably, I will create a WIP-PR so you can watch the progress and we can discuss certain changes.