Semantic Web

Transkrypt

Semantic Web
AGH University of Science and Technology
Faculty of Electrical Engineering, Automatics, Computer
Science and Biomedical Engineering
Semantic Web
Applied Computer Science, 5th year
Report
Laboratory 8
SEMANTIC WEB APPLICATIONS: SEMANTIC WIKIS
Team:
Józef Batkiewicz
Małgorzata Proszowska
2. Semantic Wikis - Categories
http://loki.ia.agh.edu.pl/lokidev/users:batkiewicz
http://loki.ia.agh.edu.pl/lokidev/university:subjects:semweb
3. Semantic Wikis - Properties
I am a [[category:student]].
My name is [[name:=Jozef Batkiewicz]]. I am [[age:=23]] years old.
Currently I study at AGH UST, faculty of electrical engineering.
I belong to group [[group:=1]].
The other members of my group are:
{{#ask: [[ category:student]] [[group:=1]]| ?group=Group | ?
age=Age | default=unknown | ?name=Name | sort=age,name }}
[[category:University subject]]
lead by: [[lead by::persons:wta]]
room: [[room::C2 316]]
duration: [[duration:=90]] min
4. Semantic Wikis - Inline queries
{{#ask: [[ category:student]] [[group:=1]]| ?group=Group | ?
age=Age | default=unknown | ?name=Name | sort=age,name }}
5. Loki - Use Case
John Travolta page
(http://loki.ia.agh.edu.pl/lokidev/persons:john_travolta)
Name: [[name:= John Joseph Travolta]]
Born date: [[born::year:1954]]-[[born::month:02]]-[[born::day:18]]
Country: [[countries:USA]]
Roles:
{{#ask: [[category:movie]] [[main_role::persons:john_travolta]] |
?title |
?production_year |
sort=production_year |
format=table
}}
Pulp fiction page
(http://loki.ia.agh.edu.pl/lokidev/movies:pulp_fiction)
==== Details ====
**Title**: [[title:=Pulp Fiction]]
**Genre**: [[genre::genres:crime]] [[genre::genres:thriller]]
**Production Year**: [[production_year:=1994]]
**Production country**: [[produced_in_country::countries:USA|
American]]
**Directed by**: [[directed_by::persons:Quentin Tarantino]]
**Language**: [[language:=english]]
**Cast**:
* [[main_role::persons:john_travolta|John Travolta]] [[main_character::characters:vincent_vega|Vincent Vega]]
===== Messing up (just for tests) =====
**Production Year**: [[production_year:=1981]]
===== Opinions =====
* Definitely worth seeing.
[[http://loki.ia.agh.edu.pl/lokidev/users:batkiewicz |
batkiewicz]]
Na stronie jest jeszcze opis filmu, który w sprawozdaniu został pominięty.
6. Loki - Semantic Web Standards
<pl format="sparql">
PREFIX wiki:
<>
SELECT ?title ?directed_by ?production_year
WHERE
{
?movie wiki:directed_by ?directed_by .
?movie wiki:title ?title.
?movie wiki:production_year ?production_year.
FILTER (?production_year<2000)
}
ORDER BY INC(?title)
LIMIT 5
</pl>
<pl format="sparql">
PREFIX wiki: <>
ASK {
?movie wiki:production_year ?production_year .
FILTER ( ?production_year<2000)
}
</pl>
<pl format="sparql">
PREFIX wiki: <>
DESCRIBE ?movie
WHERE {
?movie a "movie" ;
wiki:title ?title ;
wiki:directed_by ?directed_by;
wiki:production_year ?production_year .
FILTER (?production_year<2000)
}
</pl>
Kategoria:
<owl:Class
rdf:about="http://loki.ia.agh.edu.pl/lokidev/special:uriresolve:sp
ecial:category:movie">
<rdfs:label>movie</rdfs:label>
<rdfs:isDefinedBy
rdf:resource="http://loki.ia.agh.edu.pl/lokidev/special:category:m
ovie?do=exportrdf"/>
</owl:Class>
Relacje:
<owl:ObjectProperty
rdf:about="http://loki.ia.agh.edu.pl/lokidev/special:uriresolve:sp
ecial:relation:directed_by">
<rdfs:label>directed_by</rdfs:label>
<rdfs:isDefinedBy
rdf:resource="http://loki.ia.agh.edu.pl/lokidev/special:relation:d
irected_by?do=exportrdf"/>
</owl:ObjectProperty>
Atrybuty:
<owl:DatatypeProperty
rdf:about="http://loki.ia.agh.edu.pl/lokidev/special:uriresolve:sp
ecial:attribute:title">
<rdfs:label>title</rdfs:label>
<rdfs:isDefinedBy
rdf:resource="http://loki.ia.agh.edu.pl/lokidev/special:attribute:
title?do=exportrdf"/>
</owl:DatatypeProperty>
<owl:DatatypeProperty
rdf:about="http://loki.ia.agh.edu.pl/lokidev/special:uriresolve:sp
ecial:attribute:production_year">
<rdfs:label>production_year</rdfs:label>
<rdfs:isDefinedBy
rdf:resource="http://loki.ia.agh.edu.pl/lokidev/special:attribute:
production_year?do=exportrdf"/>
</owl:DatatypeProperty>