d3web Demo#

Here we define our objects/questions

The name 'Who does John hate?' does not comply to the naming convention pattern '[0-9a-zA-ZäöüÄÖÜß#_():/.,\- ]*'. The name '玛丽' does not comply to the naming convention pattern '[0-9a-zA-ZäöüÄÖÜß#_():/.,\- ]*'. The name 'What is John doing?' does not comply to the naming convention pattern '[0-9a-zA-ZäöüÄÖÜß#_():/.,\- ]*'. The name 'He isn't doing anything' does not comply to the naming convention pattern '[0-9a-zA-ZäöüÄÖÜß#_():/.,\- ]*'. Who does John hate? [oc] - 玛丽 - Mary - Someone else - Himself - No one What is John doing? <abstract> [oc] - He isn't doing anything - He buys a present for Mary
lingDemo ontology, Ling Demo Knowledge Base

The rule:

IF
"Who does John hate?"
=
玛丽
THEN
"What is John doing?"
=
He buys a present for Mary
ELSE
"What is John doing?"
=
"He isn't doing anything"
lingDemo ontology, Ling Demo Knowledge Base

Dialog to test the knowledge. Answer the first question, the rule will answer the second automatically (red square to reset)

Who does John hate?
玛丽
|
Mary
|
Someone else
|
Himself
|
No one
What is John doing?
He isn't doing anything
|
He buys a present for Mary

Shows the currently derived fact:

ShowSolutions
-- no entries --

Here we have the markup to define and compile the knowledge. You can download/export it here (tools in the top right corner):

Ling Demo Knowledge Base
ling

Ontology demo#

We define our ontology:

demo.Person
demo:Person
a
rdfs.Class
rdfs:Class
.
demo.Student
demo:Student
rdfs.subClassOf
rdfs:subClassOf
demo.Person
demo:Person
.
demo.John
demo:John
a
demo.Student
demo:Student
.
demo.玛丽
demo:玛丽
a
demo.Student
demo:Student
.
demo.loves
demo:loves
a
rdf.Property
rdf:Property
.
demo.buysPresent
demo:buysPresent
a
rdf.Property
rdf:Property
.
demo.loves
demo:loves
owl.sameAs
owl:sameAs
demo.buysPresent
demo:buysPresent
.
demo.John
demo:John
demo.loves
demo:loves
demo.玛丽
demo:玛丽
.
lingDemo ontology, Ling Demo Knowledge Base

Now we query that ontology...

A query do see who loves whom:

Show rows (overall number unknown)
Rows to         20 
SELECT * WHERE { ?Person1
demo.loves
demo:loves
demo:玛丽 }
Show rows (overall number unknown)
Rows to         20 
lingDemo ontology, Ling Demo Knowledge Base

A query do see who buys a present for whom:

Show rows (overall number unknown)
Rows to         20 
SELECT * WHERE { ?Person1
demo.buysPresent
demo:buysPresent
?Person2 }
Show rows (overall number unknown)
Rows to         20 
lingDemo ontology, Ling Demo Knowledge Base

A visualization of the ontology:

lingDemo ontology, Ling Demo Knowledge Base

Show rows (overall number unknown)
Rows to         20 
SELECT * WHERE { ?x ?y ?z . FILTER (STRSTARTS(STR(?x), "http://www.movieontology.org")) . }
Show rows (overall number unknown)
Rows to         20 
lingDemo ontology, Ling Demo Knowledge Base

Here we have again a markup to compile the ontology. You can download/export it here (tools in the top right corner):

Demo ontology
OWL_HORST_OPTIMIZED
movieontology.owl
ling

demo http://example.org#
lingDemo ontology, Ling Demo Knowledge Base

Some technical stuff: We define a separate package for all the knowledge on this page, so it is separate from all the other knowledge on d3web.de

ling