Syntax Help

20 views
Skip to first unread message

vsj...@gmail.com

unread,
Apr 26, 2015, 1:54:33 PM4/26/15
to rdfli...@googlegroups.com
I am trying to run a subjects function on an ontology file:

g = Graph()
g.parse(LocalPath/A.owl)

for items in g.subjects(RDF.type, alfredowl:Action)
print items

The output is nil. There is no error but there is no output as well. My intended output is all the instances of the class Action. What am I doing wrong here?

vsj...@gmail.com

unread,
Apr 27, 2015, 6:27:16 PM4/27/15
to rdfli...@googlegroups.com, vsj...@gmail.com
I figured that this function doesn't work without an acutal URI ns. So is there any way it can work with if I include the ns as a prefix in the OWL file I am parsing?
Reply all
Reply to author
Forward
0 new messages