RDF Schema
RDF Schema (z ang. Resource Description Framework Schema, w skrócie RDFS) – język reprezentacji wiedzy, oparty na RDF. O ile RDF zawiera jedynie informacje w postaci grafu skierowanego, to RDF Schema wprowadza podstawowe pojęcia, pozwalające na strukturalne uporządkowanie tego grafu. RDF Schema stanowi bazę dla języka OWL, pozwalającego na jeszcze dokładniejszy zapis wiedzy. Zapisane za pomocą RDFS struktury, nazywane są słownikami RDF (ang. RDF vocabularies). Język RDF Schema stanowi rekomendację W3C.
Podstawowym konstruktem języka RDFS jest klasa. Pojęcie klasy jest pokrewne pojęciu zbioru z teorii mnogości. Do klasy może należeć dowolna liczba wierzchołków z grafu RDF. Zasadniczą różnicą pomiędzy pojęciem klasy w programowaniu obiektowym jest fakt, że zasadniczo obiekt należy do jednej klasy, podczas gdy wierzchołek może być przydzielony do dowolnej liczby klas. O ile więc w programowaniu obiektowym to kształt klasy determinuje obiekty, o tyle w RDFS to zbiór wierzchołków stanowi o tym, czym jest klasa.
Przykład
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<rdfs:Class rdf:ID="Osoba"></rdfs:Class>
<rdfs:Class rdf:ID="Nauczyciel">
<rdfs:subClassOf rdf:resource="#Osoba" />
</rdfs:Class>
<rdfs:Class rdf:ID="Student">
<rdfs:subClassOf rdf:resource="#Osoba" />
</rdfs:Class>
<rdfs:Class rdf:ID="Wykład" />
<rdf:Property rdf:ID="maNauczyciela">
<rdfs:domain rdf:resource="#Wykład" />
<rdfs:range rdf:resource="#Nauczyciel" />
</rdf:Property>
<rdf:Property rdf:ID="maStudentów">
<rdfs:domain rdf:resource="#Wykład" />
<rdfs:range rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq" />
</rdf:Property>
<rdfs:Property rdf:ID="maNazwę">
<rdfs:domain rdf:resource="#Wykład" />
<rdfs:domain rdf:resource="#Osoba" />
<rdfs:range rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Literal" />
</rdfs:Property>
</rdf:RDF>
Linki zewnętrzne
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.