RDF - more than one object for one object-object

I have one (maybe) simple question: can I assign more than one ObjectResource to a fixed Subject-Property statement?

I want my RDF triples to look like this:

[http://somewhere/Angela_Merkel, http://somewhere/properties#isMentionedIn, http://somewhere/New_York_Times]

[http://somewhere/Angela_Merkel, http://somewhere/properties#isMentionedIn, http://somewhere/The_Guardian]

[http://somewhere/Angela_Merkel, http://somewhere/properties#isMentionedIn, http://somewhere/BildZeitung]

etc. Is this rdf formed correctly?

And can I implement this in Apache Jena?

+4
source share
1 answer

Yes, that would be well-formed data, and this is a general way of defining multiple values ​​for a given property for a given object.

RDF has very few restrictions on which three you can declare. Essentially, it boils down to the following:

  • Subject must be URI /? blank node
  • URI
  • URI/blank node/literal
  • , ..

, .

, , Apache Jena, , .

+5

Source: https://habr.com/ru/post/1654669/


All Articles