Blank Node - Example

Example

"John has a friend born the 21st of April" can be written with two triples linked by a blank node representing the anonymous friend of John.

ex:John foaf:knows _:p1 _:p1 foaf:birthDate 04-21

The first triple reads "John knows p1". The second triple reads "p1 is born on April 21st"

ex:John is a named resource, which means this resource is absolutely identified by the URI obtained by replacing the ex: prefix by the XML namespace it stands for, such as http://example.org/Person#John.

_:p1 represents John's anonymous friend, not identified by a URI. One can know by the semantics declared in the FOAF vocabulary that the class of _:p1 is foaf:Person.

Read more about this topic:  Blank Node

Famous quotes containing the word example:

    Our intellect is not the most subtle, the most powerful, the most appropriate, instrument for revealing the truth. It is life that, little by little, example by example, permits us to see that what is most important to our heart, or to our mind, is learned not by reasoning but through other agencies. Then it is that the intellect, observing their superiority, abdicates its control to them upon reasoned grounds and agrees to become their collaborator and lackey.
    Marcel Proust (1871–1922)