Re: match specific blank terms

Blank nodes, even with the same ID are not the resource, parsers go to length to manage this. BNode identifiers only have local scope. You can work around this by instantiating nodes with “intern” rather than “new”.

Another technique is to find the node from the repo via query using surrounding context, such as properties and values of URI or Literals. 

Gregg Kellogg
Sent from my iPhone

> On Nov 23, 2017, at 4:48 PM, Anthony Durity <a.durity@umail.ucc.ie> wrote:
> 
> Hello all,
> 
> If I do
> 
> @terms = repo.terms
> uri = RDF::URI.new(iri) # some iri that exists in the triplestore
> 
> then
> 
> @terms.include?(uri)
> 
> works nicely.
> 
> But
> 
> anon = RDF::Node.new(id) # some anon id that exists in the triplestore
> 
> @terms.include?(anon)
> 
> returns false :(
> 
> So tell me, am I holding it wrong?
> 
> Thanks!

Received on Thursday, 23 November 2017 22:07:22 UTC