Both sides previous revision
Poprzednia wersja
Nowa wersja
|
Poprzednia wersja
|
pl:dydaktyka:semweb:lab-rdfmodel2 [2017/10/08 18:11] kkutt [Control questions] |
pl:dydaktyka:semweb:lab-rdfmodel2 [2019/06/27 15:50] (aktualna) |
====== Modeling and using knowledge in RDF ====== | ====== Modeling and using knowledge in RDF ====== |
| |
^ Last verification: | 20171001 | | ^ Last verification: | 20180912 | |
^ Tools required for this lab: | -- | | ^ Tools required for this lab: | -- | |
| |
<WRAP center round important 100%> | <WRAP center round important 100%> |
During this lab we will use [[http://any23.org/|Anything to Triples]] website. If it is down, there is also a possibility to download any23 service and run it on your own computer: | During this lab we will use [[http://any23.org/|Anything to Triples]] website. If it is down, there is also a possibility to download any23 service and run it on your own computer: |
* download **Apache Any23 Service (Standalone server embedded) 1.1** file from https://any23.apache.org/download.html (mirror: {{http://home.agh.edu.pl/~kkutt/semweb/apache-any23-service-1.1-server-embedded.tar.gz|apache-any23-service-1.1-server-embedded.tar.gz}}) and unpack the zip somewhere | * download **Apache Any23 Service (Standalone server embedded) 1.1** file from https://any23.apache.org/download.html (mirror: {{http://krzysztof.kutt.pl/didactics/semweb/apache-any23-service-1.1-server-embedded.tar.gz|apache-any23-service-1.1-server-embedded.tar.gz}}) and unpack the zip somewhere |
* execute command to start server with any23 service: <code>[PATH-to-unpacked-archive]/apache-any23-service-1.1-server-embedded/bin/any23server </code> | * execute command to start server with any23 service: <code>[PATH-to-unpacked-archive]/apache-any23-service-1.1-server-embedded/bin/any23server </code> |
* Note: use the any23server.bat file if you are using Windows OS | * Note: use the any23server.bat file if you are using Windows OS |
| |
- Create a new document with a ''*.ttl'' extension. | - Create a new document with a ''*.ttl'' extension. |
- Create a document describing the graph created during the [[rdfmodel#modeling_knowledge_with_rdf_graphs_20_minutes|previous lab]]. Use the [[http://www.w3.org/TR/turtle/|RDF Turtle]] for reference. | - Create a document describing the graph created during the [[lab-rdfmodel#modeling_knowledge_with_rdf_graphs_25_minutes|previous lab]]. Use the [[http://www.w3.org/TR/turtle/|RDF Turtle]] for reference. |
- Define namespaces for your document URIs, e.g., a standard RDF namespace and one "your own" for this specific topic: <code>@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. | - Define namespaces for your document URIs, e.g., a standard RDF namespace and one "your own" for this specific topic: <code>@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. |
@prefix bb: <http://yourname/b-and-b#>.</code> | @prefix bb: <http://yourname/b-and-b#>.</code> |
Use at least 3 different datatypes! | Use at least 3 different datatypes! |
| |
==== - RDF Visualization [10 minutes] ==== | ==== - RDF Visualization [3 minutes] ==== |
| |
We are in the middle, so let's visualize our RDF files. | We are in the middle, so let's visualize our RDF files. |
You may find [[http://www.w3.org/TR/rdf-schema/|RDF Schema 1.1]] recommendation useful. | You may find [[http://www.w3.org/TR/rdf-schema/|RDF Schema 1.1]] recommendation useful. |
| |
==== - RDF Schema: Non-modeling properties [10 minutes] ==== | ==== - RDF Schema: Non-modeling properties [3 minutes] ==== |
| |
RDF Schema also provides some handful properties that are not used in inference process. These are: | RDF Schema also provides some handful properties that are not used in inference process. These are: |