April 17, 2019

Semantic Triple in RDF

Composed of:

Subject -> Predicate -> Object

A subject: which is a URI (e.g., a "web address") that represents something.
A predicate: which is another URI that represents a certain property of the subject.
An object: which can be a URI or a literal (a string) that is related to the subject

Example:
Bob knows John
http://example.name#BobSmith12 http://xmlns.com/foaf/0.1/knows http://example.name#JohnDoe34

Ref: https://data-gov.tw.rpi.edu/wiki/A_crash_course_in_SPARQL
https://en.wikipedia.org/wiki/Semantic_triple

John's age 70
http://example.name#JohnDoe34 http://xmlns.com/foaf/0.1/age 70

We can infer from the above 2 statements that Bob know somebody who is 70 years old


No comments:

Post a Comment