def test_03_get_value(self):
# is the name of entity E10009 "Arco Publications"?
# (in graph http://bibliographica.org/entity/E10009)
# Looking for:
# <http://bibliographica.org/entity/E10009>
# <http://xmlns.com/foaf/0.1/name>
# "Arco Publications"
# <http://bibliographica.org/entity/E10009>
g = self._load_example()
s = URIRef("http://bibliographica.org/entity/E10009")
FOAF = Namespace("http://xmlns.com/foaf/0.1/")
self.assertTrue(g.value(s, FOAF.name).eq("Arco Publications"))
评论列表
文章目录