lambdamusic / Ontospy

Python library and command-line interface for inspecting and visualizing RDF models aka ontologies.
http://lambdamusic.github.io/Ontospy/
MIT License
221 stars 52 forks source link

getValuesForProperty: add lazy evaluation of rdflib.URIRef #40

Closed lambdamusic closed 6 years ago

lambdamusic commented 6 years ago
In [33]: a1.getValuesForProperty("http://scigraph.springernature.com/ontologies/core/doi")
Out[33]: []

In [34]: import rdflib

In [35]: a1.getValuesForProperty(rdflib.URIRef("http://scigraph.springernature.com/ontologies/core/doi"))
Out[35]: [rdflib.term.Literal(u'10.1023/B:HIJO.0000045969.52516.59')]
lambdamusic commented 6 years ago

done in 1.9