Skip to content

Commit

Permalink
add: as presented
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholsn committed Jul 23, 2016
1 parent 850c936 commit 5c90c50
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 20 deletions.
113 changes: 98 additions & 15 deletions learning-rdf/Learning-RDF.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,25 @@
},
"source": [
"# Overview - Part 1\n",
"- Motivation: Neuroimaging Data Model (NIDM)\n",
"- When to Consider Using Semantic Web Technologies\n",
"- Overview of RDF\n",
"- The Central Importance of the URI\n",
"- \n",
"- Overview of RDFS"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Motivation: Neuroimaging Data Model (NIDM)\n",
"![RDF](nidm.svg)"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -215,12 +227,43 @@
}
},
"source": [
"# Real Example of RDF \n",
"# Example of RDF \n",
"- RDF introduces a 'type system' for resources.\n",
"- RDF models **Information Content**, can use multiple syntaxes (ntriples, XML, JSON-LD, Turtle)\n",
"![RDF](type-system.svg)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Example of RDF as NTriples\n",
"![RDF](ntriples.svg)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Example of RDF Serializations\n",
"- Many syntaxes for displaying the same information.\n",
" - NTriples, XML, JSON, **Turtle**\n",
"- Some of these syntaxes (i.e., serializations) use **prefixes** to make reading easier.\n",
" - Full URI: <http://www.w3c.org/ns/prov#Person>\n",
" - Prefix Declaration: `@prefix prov: <http://www.w3c.org/ns/prov#> .`\n",
" - Prefix Usage: `prov:Person`\n",
"- Demo!\n",
" - using **rapper** commandline tool: http://librdf.org/raptor/rapper.html"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand All @@ -230,7 +273,11 @@
},
"source": [
"# RDF Schema (RDFS)\n",
"- RDFS provides a schema that allows for "
"- RDFS provides a schema language\n",
"- Allows for simple inference, applying rules to add new facts to a dataset.\n",
"- There are 2 forms of inference in RDFS\n",
" - **Class Hierarchy**: Infer additional types based on super classes\n",
" - **Domain of Properties**: Infer additional types based on property usage"
]
},
{
Expand All @@ -241,7 +288,8 @@
}
},
"source": [
"# Web Ontology Language (OWL)"
"# RDFS Class Hierarchy\n",
"![RDF](rdfs-subclass.svg)"
]
},
{
Expand All @@ -252,22 +300,57 @@
}
},
"source": [
"# Summary\n",
"- Semantic Web standards provides a flexible data model (RDF) and schema languages (RDFS/OWL).\n",
"- RDF provides a type system for describing data resources.\n",
"- RDFS provides simple inferencing capabiilities based on Class Hierarchies, Domain, and Range.\n",
"- OWL provide a rich ontology language for inference\n",
"- In Part 2 "
"# RDFS Properties\n",
"- Define new relationships\n",
"- Relationships can have a domain and range\n",
"- Domain allows to infer a class based on property usage \n",
"![RDF](rdfs-property.svg)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Web Ontology Language (OWL)\n",
"- A rich language for describing concepts, relationships, restrictions.\n",
"- More expressive than RDFS, with many more forms of inference.\n",
"- Tools (e.g., Protege) for editing and collaborating on vocabulary development.\n",
"- Details are outside scope."
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# PROV: An example OWL Ontology\n",
"- Provenance is information about entities, activities, and people involved in producing a piece of data or thing, which can be used to form assessments about its quality, reliability or trustworthiness.\n",
"![RDF](prov.svg)"
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {
"collapsed": true
"slideshow": {
"slide_type": "slide"
}
},
"outputs": [],
"source": []
"source": [
"# Summary\n",
"- Semantic Web standards provides a flexible data model (RDF) and schema languages (RDFS/OWL).\n",
"- RDF provides a type system for describing data resources.\n",
"- RDFS provides simple inferencing capabiilities based on Class Hierarchies, Domain, and Range.\n",
"- OWL provide a rich ontology language for inference.\n",
"- PROV is a standard language for describing data provencance.\n",
"- In Part 2, we will see how to query these documents and dtor the in databases."
]
}
],
"metadata": {
Expand Down
2 changes: 1 addition & 1 deletion learning-rdf/merge-graph.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions learning-rdf/nidm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions learning-rdf/ntriples.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions learning-rdf/prov.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions learning-rdf/rdfs-property.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion learning-rdf/rdfs-subclass.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions learning-rdf/subject.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
prefix prov: <http://www.w3c.org/ns/prov#> .
prefix : <> .
#@prefix prov: <http://www.w3c.org/ns/prov#> .
#@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
#@prefix : <http://my.data#> .

:sub01 rdf:type prov:Person .
<http://my.data#sub01> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3c.org/ns/prov#Person> .
<http://my.data#sub01> <http://my.data#identifier> "sub01" .
<http://my.data#sub01> <http://my.data#age> "25.7"^^<http://www.w3.org/2001/XMLSchema#decimal> .

0 comments on commit 5c90c50

Please sign in to comment.