Hello there,
currently I am working on a tool to annotate data automatically. I've come
across a problem I can't solve by myself, so I am hoping some of you guys can
help me.
Basically I am interessted in creating an output as follows:
_:polygon rdf:type ngeo:Polygon ;
ngeo:exterior [
rdf:type ngeo:LinearRing ;
ngeo:posList (
[ geo:lat "-29"; geo:long "16" ]
[ geo:lat "-28"; geo:long "33" ]
[ geo:lat "-34"; geo:long "27" ]
[ geo:lat "-35"; geo:long "19" ]
[ geo:lat "-29"; geo:long "16" ]
)
] .
I can't figure out how to do it. I looked into the rdflib doc and I found the
Collection class. The only problem is, that the graph.add() function needs to
have a rdflib.term object as an input; Collection is a collection and I get
this error:
AssertionError: Object <rdflib.collection.Collection object at 0x10300ce10>
must be an rdflib term
What I also don't quite get is this part:
...
ngeo:exterior [
rdf:type ngeo:LinearRing ;
...
ngeo:exterior is in this case an ObjectProperty. It can also be a Class. What I
don't understand is: Does the rdf:type ngeo:LinearRing that ngeo:exterior is
also a class?
I hope someone can help.
Kind regards,
Eddie
--
http://github.com/RDFLib
---
You received this message because you are subscribed to the Google Groups
"rdflib-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rdflib-dev/892c2362-2a25-4769-8e47-9ec10b25bf6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.