Mercurial > code > home > repos > homeauto
comparison service/mqtt_to_rdf/inference_test.py @ 1659:15e84c71beee
parse lists from graph into the Chunks
author | drewp@bigasterisk.com |
---|---|
date | Sun, 19 Sep 2021 14:42:39 -0700 |
parents | 274bb6c04627 |
children | 31f7dab6a60b |
comparison
equal
deleted
inserted
replaced
1658:7ec2483d61b5 | 1659:15e84c71beee |
---|---|
25 prefix = """ | 25 prefix = """ |
26 @prefix : <http://projects.bigasterisk.com/room/> . | 26 @prefix : <http://projects.bigasterisk.com/room/> . |
27 @prefix ex: <http://example.com/> . | 27 @prefix ex: <http://example.com/> . |
28 @prefix room: <http://projects.bigasterisk.com/room/> . | 28 @prefix room: <http://projects.bigasterisk.com/room/> . |
29 @prefix math: <http://www.w3.org/2000/10/swap/math#> . | 29 @prefix math: <http://www.w3.org/2000/10/swap/math#> . |
30 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
30 """ | 31 """ |
31 g.parse(StringInputSource((prefix + txt).encode('utf8')), format='n3') | 32 g.parse(StringInputSource((prefix + txt).encode('utf8')), format='n3') |
32 return g | 33 return g |
33 | 34 |
34 | 35 |