The Resource Description Framework (RDF) is a framework for representing information in the Web.
The underlying structure of any expression in RDF is a collection of triples, each consisting of a subject, a predicate and an object. A set of such triples is called an RDF graph.
- a subject,
- an object, and
- a predicate (also called a property) that denotes a relationship.
RDF 예
<http://reqs.com/req/1234> rdf:type oslc_rm:Requirement
<http://reqs.com/req/1234> dcterms:title "Smooth upgrade path"
<http://reqs.com/req/1234> oslc_rm:elaboratedBy <http://reqs.com/req/7772>
<http://reqs.com/req/1234> oslc_rm:validatedBy <http://tests.com/test/521>
<http://tests.com/test/521> rdf:type oslc_qm:TestCase
<http://tests.com/test/521> rdf:type oslc_qm:TestCase
<http://tests.com/test/521> dcterms:title "Verify compatibility"
<http://tests.com/test/521> oslc_qm:usesTestScript <http://tests.com/script/13>
SPARQL is standard query language for RDF datasets
SPARQL 예
SELECT ?uri ?title WHERE {
?uri rdf:type oslc_rm:Requirement .
?uri dcterms:title ?title .}
결과
uri | title |
<http://reqs.com/req/1234> | "Smooth upgrade path" |
-
댓글 없음:
댓글 쓰기