You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I generate an graph and save the output to an owl file. When I inspect the file manually I can see the value.
Saving the property OntologyProperty op = new OntologyProperty(predicate, g); op.AddDomain(subject); op.AddRange(obj); systemId = g.CreateLiteralNode(x.subject.ToString()); op.AddResourceProperty(subject.Uri.ToString(), systemId, true);
Reading the property
Then when I query it I get the tripple, but can not find the property with GetResourceProperty. It is always null. Is the a small sample of how to do this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I generate an graph and save the output to an owl file. When I inspect the file manually I can see the value.
Saving the property
OntologyProperty op = new OntologyProperty(predicate, g); op.AddDomain(subject); op.AddRange(obj); systemId = g.CreateLiteralNode(x.subject.ToString()); op.AddResourceProperty(subject.Uri.ToString(), systemId, true);
Reading the property
Then when I query it I get the tripple, but can not find the property with GetResourceProperty. It is always null. Is the a small sample of how to do this?
Beta Was this translation helpful? Give feedback.
All reactions