开发者

How to represent a sentence with indirect object in RDF triples?

开发者 https://www.devze.com 2023-03-05 10:23 出处:网络
for example, this sentence: \"I give John a b开发者_StackOverflowook.\" To make it as a set of triples:

for example, this sentence:

"I give John a b开发者_StackOverflowook."

To make it as a set of triples:

I give John. 
John hasIndirect book.
book count 1.

or , it can be:

sentence1 subj I.
sentence1 pred give.
sentence1 obj   John.
sentence1 indObj book.
book   count   1.

So, is there already a set of RDF predicates defined in some namespace for this purpose?


I think this would normally be handled by reifying the event of the donation, e.g:

_:e1 a :GivingEvent;
     :recipient :john;
     :actor :me;
     :object [a dbpedia:Book; dc:title "foo"];
     :count 1.

which would also allow you to say when the giving took place, who else was there, etc.

So, is there already a set of RDF predicates defined in some namespace for this purpose?

I don't know of one, sorry.

0

精彩评论

暂无评论...
验证码 换一张
取 消