def test_spatial_literal_only(self):
g = Graph()
dataset = URIRef('http://example.org/datasets/1')
g.add((dataset, RDF.type, DCAT.Dataset))
g.add((dataset, DCT.spatial, Literal('Newark')))
p = RDFParser(profiles=['euro_dcat_ap'])
p.g = g
datasets = [d for d in p.datasets()]
extras = self._extras(datasets[0])
eq_(extras['spatial_text'], 'Newark')
assert_true('spatial_uri' not in extras)
assert_true('spatial' not in extras)
test_euro_dcatap_profile_parse.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录