{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Safari" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**Setting up the environment**\n", "Initialization of the Ontology editor in Jupyter Notebook" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from cognipy.ontology import Ontology #the ontology processing class\n", "from cognipy.ontology import CQL #SPARQL format tailored for Contolled Natural Language\n", "from cognipy.ontology import encode_string_for_graph_label #complex datatypes encoder for the graph labels in graph visualisation\n", "import textwrap\n", "\n", "def graph_attribute_formatter(val):\n", " if isinstance(val,list) or isinstance(val,set):\n", " return \" | \".join(list(map(lambda i:encode_string_for_graph_label(graph_attribute_formatter(i)),val)))\n", " elif isinstance(val,dict):\n", " return \" | \".join(list(map(lambda i:i[0]+\" : \"+encode_string_for_graph_label(graph_attribute_formatter(i[1])),val.items())))\n", " else:\n", " return encode_string_for_graph_label(textwrap.fill(str(val),40))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### African Wildlife.\n", "Loading the editor for the basic \"safari\" ontology. The Ontology is inspired by 'A Semantic Web Primer.' by 'Antoniou, G, van Harmelen, F.' 'MIT Press, 2003.' 'http://www.csd.uoc.gr/~hy566/SWbook.pdf', tuned to OWL/RL+SWRL profile." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Part-1: 'simple hierarchy of beings'. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Lets setup the fist ontology editor for the general knowledge." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Overwriting part_01.encnl\n" ] } ], "source": [ "%%writefile part_01.encnl\n", "\n", "Namespace: 'http://cognitum.eu/african_wildlife'.\n", "\n", "Comment: 'Let's name our instances'.\n", "Comment: 'Let's specify the hierarchy of beings'. \n", "Comment: 'What is what?'.\n", "\n", "Every lion is an animal.\n", "Every giraffe is an animal.\n", "\n", "Every animal has a face. \n", "\n", "Comment: 'Moreover'.\n", "Every impala is an animal.\n", "Every omnivore is an animal. \n", "Every rock-dassie is an animal.\n", "Every warthog is an animal.\n", "Every carnivore is an animal.\n", "Every herbivore is an animal.\n", "Every elephant is a herbivore.\n", "Every lion is carnivore.\n", "\n", "Comment: 'There are also plants there:'.\n", "Every tree is a plant.\n", "Every grass is a plant.\n", "Every palm-tree is a plant.\n", "\n", "Every branch is a plant-part.\n", "Every leaf is a plant-part.\n", "Every twig is a plant-part.\n", "\n", "Every phloem is a plant-part.\n", "Every root is a plant-part.\n", "Every parsnip is a root.\n", "Every stem is a plant-part.\n", "Every xylem is a plant-part.\n", "Every fruiting-body is a plant-part.\n", "Every berry is a fruiting-body.\n", "Every apple is a fruiting-body.\n", "\n", "Comment: 'We cannot use adjectives directly. To specify adjectives we need to transform them into sets that have form of buzzy-words'.\n", "Every tasty-plant is a plant.\n", "Every carnivorous-plant is a plant.\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The ontology object alows you to draw the materialised graph using several layout algorythms. Lets draw our base ontology." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "image/svg+xml": [ "\n", "\n", "G\n", "\n", "\n", "tasty-plant\n", "\n", "tasty-plant\n", "\n", "\n", "plant\n", "\n", "plant\n", "\n", "\n", "plant--tasty-plant\n", "\n", "\n", "\n", "\n", "carnivorous-plant\n", "\n", "carnivorous-plant\n", "\n", "\n", "plant--carnivorous-plant\n", "\n", "\n", "\n", "\n", "palm-tree\n", "\n", "palm-tree\n", "\n", "\n", "plant--palm-tree\n", "\n", "\n", "\n", "\n", "tree\n", "\n", "tree\n", "\n", "\n", "plant--tree\n", "\n", "\n", "\n", "\n", "grass\n", "\n", "grass\n", "\n", "\n", "plant--grass\n", "\n", "\n", "\n", "\n", "apple\n", "\n", "apple\n", "\n", "\n", "fruiting-body\n", "\n", "fruiting-body\n", "\n", "\n", "fruiting-body--apple\n", "\n", "\n", "\n", "\n", "berry\n", "\n", "berry\n", "\n", "\n", "fruiting-body--berry\n", "\n", "\n", "\n", "\n", "rock-dassie\n", "\n", "rock-dassie\n", "\n", "\n", "animal\n", "\n", "animal\n", "\n", "\n", "animal--rock-dassie\n", "\n", "\n", "\n", "\n", "warthog\n", "\n", "warthog\n", "\n", "\n", "animal--warthog\n", "\n", "\n", "\n", "\n", "herbivore\n", "\n", "herbivore\n", "\n", "\n", "animal--herbivore\n", "\n", "\n", "\n", "\n", "omnivore\n", "\n", "omnivore\n", "\n", "\n", "animal--omnivore\n", "\n", "\n", "\n", "\n", "carnivore\n", "\n", "carnivore\n", "\n", "\n", "animal--carnivore\n", "\n", "\n", "\n", "\n", "impala\n", "\n", "impala\n", "\n", "\n", "animal--impala\n", "\n", "\n", "\n", "\n", "giraffe\n", "\n", "giraffe\n", "\n", "\n", "animal--giraffe\n", "\n", "\n", "\n", "\n", "twig\n", "\n", "twig\n", "\n", "\n", "plant-part\n", "\n", "plant-part\n", "\n", "\n", "plant-part--fruiting-body\n", "\n", "\n", "\n", "\n", "plant-part--twig\n", "\n", "\n", "\n", "\n", "stem\n", "\n", "stem\n", "\n", "\n", "plant-part--stem\n", "\n", "\n", "\n", "\n", "leaf\n", "\n", "leaf\n", "\n", "\n", "plant-part--leaf\n", "\n", "\n", "\n", "\n", "phloem\n", "\n", "phloem\n", "\n", "\n", "plant-part--phloem\n", "\n", "\n", "\n", "\n", "branch\n", "\n", "branch\n", "\n", "\n", "plant-part--branch\n", "\n", "\n", "\n", "\n", "root\n", "\n", "root\n", "\n", "\n", "plant-part--root\n", "\n", "\n", "\n", "\n", "xylem\n", "\n", "xylem\n", "\n", "\n", "plant-part--xylem\n", "\n", "\n", "\n", "\n", "elephant\n", "\n", "elephant\n", "\n", "\n", "herbivore--elephant\n", "\n", "\n", "\n", "\n", "lion\n", "\n", "lion\n", "\n", "\n", "carnivore--lion\n", "\n", "\n", "\n", "\n", "parsnip\n", "\n", "parsnip\n", "\n", "\n", "root--parsnip\n", "\n", "\n", "\n", "\n", "" ], "text/plain": [ "" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "onto=Ontology(\"cnl/file\",\"part_01.encnl\", \n", " evaluator = lambda e:eval(e,globals(),locals()), \n", " graph_attribute_formatter = graph_attribute_formatter)\n", "\n", "onto.draw_graph(layout='hierarchical')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "It is fully compatible with OWL/RDF format (via OWLAPI). We can always export it as it is." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Part-2: Disjointness\n", "In OWL/RL+SWRL profile we deal with Open World Assumption. It means that we need to explicitly specify all the objects that are different from each other. We cannot assume (like e.g. object oriented programming language do) that the different names mean the different things, therefore we need to specify explicitly if two things are different." ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "scrolled": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Overwriting part_02.encnl\n" ] } ], "source": [ "%%writefile part_02.encnl\n", "\n", "Every-single-thing that is a plant and-or is a plant-part is a herb.\n", "No herb is an animal.\n", "\n", "Every carnivore eats nothing-but animals.\n", "Every lion eats nothing-but herbivores.\n", "\n", "Every herbivore eats nothing-but herb.\n", "\n", "Anything either is a carnivore, is a herbivore or is an omnivore or-something-else.\n", "Anything either is a branch, is a leaf or is a twig or-something-else.\n", "\n", "No giraffe is a lion.\n", "Every palm-tree is not a tree." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Lets test how it works on the example. The example will be defining several instances, that aim to break the consistency of the ontology in som not obvious way." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Overwriting test_01.encnl\n" ] } ], "source": [ "%%writefile test_01.encnl\n", "\n", "Leo-01 is a lion.\n", "Leo-01 eats Sophie-01.\n", "Sophie-01 is a giraffe.\n", "Leo-01 eats Mary-01.\n", "Mary-01 is a palm-tree." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Lets load all the parts ontology ontology togheter with the testing part into the newly created obeject. " ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "onto=Ontology(\"cnl/string\",'\\n'.join(open(fn,\"rt\").read() for fn in [\"part_01.encnl\",\"part_02.encnl\",\"test_01.encnl\"]), \n", " evaluator = lambda e:eval(e,globals(),locals()), \n", " graph_attribute_formatter = graph_attribute_formatter)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We will need also some way to describe what is wrong `printReasoningInfo` and why `printWhy`." ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "import json\n", "\n", "def printReasoningInfo(onto):\n", " info=onto.reasoningInfo()\n", " if info == \"\":\n", " print('all good!')\n", " else:\n", " print(json.dumps(json.loads(info), indent=2, sort_keys=True))\n", "\n", "def printWhy(onto,fact):\n", " info=json.loads(onto.why(fact))\n", " print(json.dumps(info, indent=2, sort_keys=True))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "So what is wrong here?" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{\n", " \"errors\": [\n", " {\n", " \"content\": \"Complement classes\",\n", " \"title\": \"inconsistency\",\n", " \"vals\": {\n", " \"concept\": \"animal\",\n", " \"instance\": \"Mary-01\"\n", " }\n", " }\n", " ]\n", "}\n" ] } ], "source": [ "printReasoningInfo(onto)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Lets draw it on a diagram, this time using force directed layout." ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "image/svg+xml": [ "\n", "\n", "G\n", "\n", "\n", "tasty-plant\n", "\n", "tasty-plant\n", "\n", "\n", "plant\n", "\n", "plant\n", "\n", "\n", "plant--tasty-plant\n", "\n", "\n", "\n", "\n", "carnivorous-plant\n", "\n", "carnivorous-plant\n", "\n", "\n", "plant--carnivorous-plant\n", "\n", "\n", "\n", "\n", "palm-tree\n", "\n", "palm-tree\n", "\n", "\n", "plant--palm-tree\n", "\n", "\n", "\n", "\n", "tree\n", "\n", "tree\n", "\n", "\n", "plant--tree\n", "\n", "\n", "\n", "\n", "grass\n", "\n", "grass\n", "\n", "\n", "plant--grass\n", "\n", "\n", "\n", "\n", "apple\n", "\n", "apple\n", "\n", "\n", "fruiting-body\n", "\n", "fruiting-body\n", "\n", "\n", "fruiting-body--apple\n", "\n", "\n", "\n", "\n", "berry\n", "\n", "berry\n", "\n", "\n", "fruiting-body--berry\n", "\n", "\n", "\n", "\n", "rock-dassie\n", "\n", "rock-dassie\n", "\n", "\n", "animal\n", "\n", "animal\n", "\n", "\n", "animal--rock-dassie\n", "\n", "\n", "\n", "\n", "warthog\n", "\n", "warthog\n", "\n", "\n", "animal--warthog\n", "\n", "\n", "\n", "\n", "herbivore\n", "\n", "herbivore\n", "\n", "\n", "animal--herbivore\n", "\n", "\n", "\n", "\n", "omnivore\n", "\n", "omnivore\n", "\n", "\n", "animal--omnivore\n", "\n", "\n", "\n", "\n", "carnivore\n", "\n", "carnivore\n", "\n", "\n", "animal--carnivore\n", "\n", "\n", "\n", "\n", "impala\n", "\n", "impala\n", "\n", "\n", "animal--impala\n", "\n", "\n", "\n", "\n", "giraffe\n", "\n", "giraffe\n", "\n", "\n", "animal--giraffe\n", "\n", "\n", "\n", "\n", "twig\n", "\n", "twig\n", "\n", "\n", "plant-part\n", "\n", "plant-part\n", "\n", "\n", "plant-part--fruiting-body\n", "\n", "\n", "\n", "\n", "plant-part--twig\n", "\n", "\n", "\n", "\n", "stem\n", "\n", "stem\n", "\n", "\n", "plant-part--stem\n", "\n", "\n", "\n", "\n", "leaf\n", "\n", "leaf\n", "\n", "\n", "plant-part--leaf\n", "\n", "\n", "\n", "\n", "phloem\n", "\n", "phloem\n", "\n", "\n", "plant-part--phloem\n", "\n", "\n", "\n", "\n", "branch\n", "\n", "branch\n", "\n", "\n", "plant-part--branch\n", "\n", "\n", "\n", "\n", "root\n", "\n", "root\n", "\n", "\n", "plant-part--root\n", "\n", "\n", "\n", "\n", "xylem\n", "\n", "xylem\n", "\n", "\n", "plant-part--xylem\n", "\n", "\n", "\n", "\n", "elephant\n", "\n", "elephant\n", "\n", "\n", "herbivore--elephant\n", "\n", "\n", "\n", "\n", "Mary-01\n", "\n", "Mary-01\n", "\n", "\n", "herbivore--Mary-01\n", "\n", "\n", "\n", "\n", "Sophie-01\n", "\n", "Sophie-01\n", "\n", "\n", "herbivore--Sophie-01\n", "\n", "\n", "\n", "\n", "lion\n", "\n", "lion\n", "\n", "\n", "carnivore--lion\n", "\n", "\n", "\n", "\n", "Leo-01\n", "\n", "Leo-01\n", "\n", "\n", "lion--Leo-01\n", "\n", "\n", "\n", "\n", "palm-tree--Mary-01\n", "\n", "\n", "\n", "\n", "parsnip\n", "\n", "parsnip\n", "\n", "\n", "root--parsnip\n", "\n", "\n", "\n", "\n", "giraffe--Sophie-01\n", "\n", "\n", "\n", "\n", "herb\n", "\n", "herb\n", "\n", "\n", "herb--plant\n", "\n", "\n", "\n", "\n", "herb--plant-part\n", "\n", "\n", "\n", "\n", "Leo-01--Mary-01\n", "\n", "\n", "eats\n", "\n", "\n", "Leo-01--Sophie-01\n", "\n", "\n", "eats\n", "\n", "\n", "" ], "text/plain": [ "" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "onto.draw_graph(layout='force directed')" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{\n", " \"by\": [\n", " {\n", " \"expr\": \"Every carnivore eats nothing-but animals.\"\n", " },\n", " {\n", " \"expr\": \"Every carnivore eats nothing-but animals.\"\n", " },\n", " {\n", " \"expr\": \"Leo-01 eats Mary-01.\"\n", " },\n", " {\n", " \"by\": [\n", " {\n", " \"by\": [\n", " {\n", " \"expr\": \"Every lion is a carnivore.\"\n", " },\n", " {\n", " \"expr\": \"Every carnivore eats nothing-but animals.\"\n", " }\n", " ]\n", " },\n", " {\n", " \"expr\": \"Leo-01 is a lion.\"\n", " }\n", " ]\n", " }\n", " ],\n", " \"concluded\": \"Mary-01 is an animal.\"\n", "}\n" ] } ], "source": [ "printWhy(onto,\"Mary-01 is a animal?\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Part-3: Modal expressions and part-whole relationships." ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "scrolled": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Overwriting part_03.encnl\n" ] } ], "source": [ "%%writefile part_03.encnl\n", "\n", "Every carnivorous-plant must eat an animal.\n", "Every carnivor must eat an animal.\n", "Every omnivore must eat a plant.\n", "Every branch must be-part-of a tree.\n", "Every plant-part must be-part-of a plant.\n", "\n", "Comment: 'Role equivalence and inverted roles'.\n", "X has-part Y if-and-only-if Y is-part-of X.\n", "X eats Y if-and-only-if Y is-eaten-by X.\n", "\n", "Comment: 'Role subsumptions'.\n", "If X is-part-of Y then X is-part-of Y.\n", "If X has-part something that has-part Y then X has-part Y.\n", "\n", "Comment: 'Complex role subsumptions'.\n", "If X is-part-of something that is-part-of Y then X is-part-of Y." ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Overwriting test_02.encnl\n" ] } ], "source": [ "%%writefile test_02.encnl\n", "\n", "Leo-01 is a lion.\n", "Leo-01 eats Sophie-01.\n", "Sophie-01 is a giraffe.\n", "Sophie-01 eats Leaf-01.\n", "Mary-01 is a tree.\n", "Leaf-01 is a leaf and is-part-of Branch-02.\n", "Branch-02 is a branch and is-part-of Branch-01.\n", "Branch-01 is a branch and is-part-of Mary-01.\n", "Branch-03 is a branch." ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "onto=Ontology(\"cnl/string\",'\\n'.join(open(fn,\"rt\").read() for fn in [\"part_01.encnl\",\"part_02.encnl\",\"part_03.encnl\",\"test_02.encnl\"]), \n", " evaluator = lambda e:eval(e,globals(),locals()), \n", " graph_attribute_formatter = graph_attribute_formatter)" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{\n", " \"modals\": {\n", " \"Every branch must be-part-of a tree.\\r\\n\": [\n", " {\n", " \"?x0\": {\n", " \"instance\": \"Branch-03\"\n", " }\n", " }\n", " ],\n", " \"Every plant-part must be-part-of a plant.\\r\\n\": [\n", " {\n", " \"?x0\": {\n", " \"instance\": \"Branch-03\"\n", " }\n", " }\n", " ]\n", " }\n", "}\n" ] } ], "source": [ "printReasoningInfo(onto)" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "image/svg+xml": [ "\n", "\n", "G\n", "\n", "\n", "warthog\n", "\n", "warthog\n", "\n", "\n", "animal\n", "\n", "animal\n", "\n", "\n", "animal--warthog\n", "\n", "\n", "\n", "\n", "impala\n", "\n", "impala\n", "\n", "\n", "animal--impala\n", "\n", "\n", "\n", "\n", "rock-dassie\n", "\n", "rock-dassie\n", "\n", "\n", "animal--rock-dassie\n", "\n", "\n", "\n", "\n", "herbivore\n", "\n", "herbivore\n", "\n", "\n", "animal--herbivore\n", "\n", "\n", "\n", "\n", "giraffe\n", "\n", "giraffe\n", "\n", "\n", "animal--giraffe\n", "\n", "\n", "\n", "\n", "carnivore\n", "\n", "carnivore\n", "\n", "\n", "animal--carnivore\n", "\n", "\n", "\n", "\n", "omnivore\n", "\n", "omnivore\n", "\n", "\n", "animal--omnivore\n", "\n", "\n", "\n", "\n", "phloem\n", "\n", "phloem\n", "\n", "\n", "plant-part\n", "\n", "plant-part\n", "\n", "\n", "plant-part--phloem\n", "\n", "\n", "\n", "\n", "stem\n", "\n", "stem\n", "\n", "\n", "plant-part--stem\n", "\n", "\n", "\n", "\n", "branch\n", "\n", "branch\n", "\n", "\n", "plant-part--branch\n", "\n", "\n", "\n", "\n", "root\n", "\n", "root\n", "\n", "\n", "plant-part--root\n", "\n", "\n", "\n", "\n", "xylem\n", "\n", "xylem\n", "\n", "\n", "plant-part--xylem\n", "\n", "\n", "\n", "\n", "fruiting-body\n", "\n", "fruiting-body\n", "\n", "\n", "plant-part--fruiting-body\n", "\n", "\n", "\n", "\n", "twig\n", "\n", "twig\n", "\n", "\n", "plant-part--twig\n", "\n", "\n", "\n", "\n", "leaf\n", "\n", "leaf\n", "\n", "\n", "plant-part--leaf\n", "\n", "\n", "\n", "\n", "Branch-03\n", "\n", "Branch-03\n", "\n", "\n", "branch--Branch-03\n", "\n", "\n", "\n", "\n", "Branch-01\n", "\n", "Branch-01\n", "\n", "\n", "branch--Branch-01\n", "\n", "\n", "\n", "\n", "Branch-02\n", "\n", "Branch-02\n", "\n", "\n", "branch--Branch-02\n", "\n", "\n", "\n", "\n", "parsnip\n", "\n", "parsnip\n", "\n", "\n", "root--parsnip\n", "\n", "\n", "\n", "\n", "palm-tree\n", "\n", "palm-tree\n", "\n", "\n", "plant\n", "\n", "plant\n", "\n", "\n", "plant--palm-tree\n", "\n", "\n", "\n", "\n", "carnivorous-plant\n", "\n", "carnivorous-plant\n", "\n", "\n", "plant--carnivorous-plant\n", "\n", "\n", "\n", "\n", "tasty-plant\n", "\n", "tasty-plant\n", "\n", "\n", "plant--tasty-plant\n", "\n", "\n", "\n", "\n", "grass\n", "\n", "grass\n", "\n", "\n", "plant--grass\n", "\n", "\n", "\n", "\n", "tree\n", "\n", "tree\n", "\n", "\n", "plant--tree\n", "\n", "\n", "\n", "\n", "elephant\n", "\n", "elephant\n", "\n", "\n", "herbivore--elephant\n", "\n", "\n", "\n", "\n", "Sophie-01\n", "\n", "Sophie-01\n", "\n", "\n", "herbivore--Sophie-01\n", "\n", "\n", "\n", "\n", "berry\n", "\n", "berry\n", "\n", "\n", "fruiting-body--berry\n", "\n", "\n", "\n", "\n", "apple\n", "\n", "apple\n", "\n", "\n", "fruiting-body--apple\n", "\n", "\n", "\n", "\n", "giraffe--Sophie-01\n", "\n", "\n", "\n", "\n", "lion\n", "\n", "lion\n", "\n", "\n", "Leo-01\n", "\n", "Leo-01\n", "\n", "\n", "lion--Leo-01\n", "\n", "\n", "\n", "\n", "carnivore--lion\n", "\n", "\n", "\n", "\n", "Mary-01\n", "\n", "Mary-01\n", "\n", "\n", "tree--Mary-01\n", "\n", "\n", "\n", "\n", "Leaf-01\n", "\n", "Leaf-01\n", "\n", "\n", "leaf--Leaf-01\n", "\n", "\n", "\n", "\n", "herb\n", "\n", "herb\n", "\n", "\n", "herb--plant-part\n", "\n", "\n", "\n", "\n", "herb--plant\n", "\n", "\n", "\n", "\n", "Branch-01--Branch-02\n", "\n", "\n", "has-part\n", "\n", "\n", "Branch-01--Mary-01\n", "\n", "\n", "is-part-of\n", "\n", "\n", "Branch-01--Leaf-01\n", "\n", "\n", "has-part\n", "\n", "\n", "Branch-02--Branch-01\n", "\n", "\n", "is-part-of\n", "\n", "\n", "Branch-02--Mary-01\n", "\n", "\n", "is-part-of\n", "\n", "\n", "Branch-02--Leaf-01\n", "\n", "\n", "has-part\n", "\n", "\n", "Mary-01--Branch-01\n", "\n", "\n", "has-part\n", "\n", "\n", "Mary-01--Branch-02\n", "\n", "\n", "has-part\n", "\n", "\n", "Mary-01--Leaf-01\n", "\n", "\n", "has-part\n", "\n", "\n", "Leaf-01--Branch-01\n", "\n", "\n", "is-part-of\n", "\n", "\n", "Leaf-01--Branch-02\n", "\n", "\n", "is-part-of\n", "\n", "\n", "Leaf-01--Mary-01\n", "\n", "\n", "is-part-of\n", "\n", "\n", "Leaf-01--Sophie-01\n", "\n", "\n", "is-eaten-by\n", "\n", "\n", "Sophie-01--Leaf-01\n", "\n", "\n", "eats\n", "\n", "\n", "Sophie-01--Leo-01\n", "\n", "\n", "is-eaten-by\n", "\n", "\n", "Leo-01--Sophie-01\n", "\n", "\n", "eats\n", "\n", "\n", "" ], "text/plain": [ "" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ "onto.draw_graph(layout=\"force directed\")" ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Instanceis-eaten-byeats
0Sophie-01Leo-01Leaf-01
\n", "
" ], "text/plain": [ " Instance is-eaten-by eats\n", "0 Sophie-01 Leo-01 Leaf-01" ] }, "execution_count": 16, "metadata": {}, "output_type": "execute_result" } ], "source": [ "onto.select_instances_of(\"eaten by Leo-01\")" ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{\"concluded\":\"Leo-01 is an animal.\",\"by\":[\r\n", " {\"expr\":\"Every lion is an animal.\"},\r\n", " {\"expr\":\"Leo-01 is a lion.\"}]}\r\n", "\r\n", "\n" ] } ], "source": [ "print(onto.why(\"Leo-01 is an animal?\"))" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
a1a2
0Leo-01Sophie-01
\n", "
" ], "text/plain": [ " a1 a2\n", "0 Leo-01 Sophie-01" ] }, "execution_count": 18, "metadata": {}, "output_type": "execute_result" } ], "source": [ "onto.sparql_query(CQL(\"\"\"select ?a1 ?a2 {\n", " ?a1 rdf:type . \n", " ?a2 rdf:type . \n", " ?a1 ?a2. \n", " }\"\"\",\"http://cognitum.eu/african_wildlife#\"))" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\r\n", "\r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", " \r\n", "\r\n", "\n" ] } ], "source": [ "print(onto.as_rdf())" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.4" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "state": { "01732923acd64d0b80804b86a06086a6": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_5143fe6b6b2e4bdbb95db4836c07f69f", "IPY_MODEL_c7c7716cd5034ec7a3235e29964fa9d9" ], "layout": "IPY_MODEL_48a844c1f16d4e0f89888a38f9f871b1" } }, "0287b64412d1476fac61df9b498195e0": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "037f1754f4dd4ad58c88763c16de89de": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "03b3c5826e9e462fa8102da3a1b543ee": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_0e81ba53de50448cba0d67cc1b204ea3", "IPY_MODEL_edfd7c1406474ef8b6008fa01533a9f1" ], "layout": "IPY_MODEL_0c03d2ee143c402dbf620710558f3c20" } }, "0529b65148e34a3f84378822394dbb23": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_e87806312d1343ce83bb2bb743ba1b80" } }, "075ca95d3ff64fdf8542061a5f907fdc": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_ac2b910f6f714657b031543b3c3820f6", "value": "Namespace: 'http://cognitum.eu/african_wildlife'.\n\nComment: 'Lets name our instances'.\nComment: 'Lets specify the hierarchy of beings'. \nComment: 'What is what?'.\nEvery ma\nEvery lion is an animal.\nEvery giraffe is an animal.\n\nComment: 'Moreover'.\nEvery impala is an animal.\nEvery omnivore is an animal. \nEvery rock-dassie is an animal.\nEvery warthog is an animal.\nEvery carnivore is an animal.\nEvery herbivore is an animal.\nEvery elephant is a herbivore.\nEvery lion is carnivore.\n\nComment: 'There are also plants there:'.\nEvery tree is a plant.\nEvery grass is a plant.\nEvery palm-tree is a plant.\n\nEvery branch is a plant-part.\nEvery leaf is a plant-part.\nEvery twig is a plant-part.\n\nEvery phloem is a plant-part.\nEvery root is a plant-part.\nEvery parsnip is a root.\nEvery stem is a plant-part.\nEvery xylem is a plant-part.\nEvery fruiting-body is a plant-part.\nEvery berry is a fruiting-body.\nEvery apple is a fruiting-body.\n\nComment: 'We cannot use adjectives directly. To specify adjectives we need to transform them into sets that have form of buzzy-words'.\nEvery tasty-plant is a plant.\nEvery carnivorous-plant is a plant.\n" } }, "08826d1d1e2d4efa9364b5d2bafa3c93": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "08a658b923de47b7add2517b8353da1a": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "08c30bf83c284e6ebe21cc3249cd99ba": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "cursor": 191, "hints": "Every
Every-single-thing
If
Leo-01
Mary-01
No
Nothing
Something
Sophie-01
The
X", "hintsX": 191, "layout": "IPY_MODEL_951c1fa30fea488a8ae1578cede4b5fe", "value": "Every carnivorous-plant must eat an animal.\nEvery carnivor must eat an animal.\nEvery omnivore must eat a plant.\nEvery branch must be-part-of a tree.\nEvery plant-part must be-part-of a plant.\n\nComment: 'Role equivalence and inverted roles'.\nX has-part Y if-and-only-if Y is-part-of X.\nX eats Y if-and-only-if Y is-eaten-by X.\n\nComment: 'Role subsumptions'.\nIf X is-part-of Y then X is-part-of Y.\nIf X has-part something that has-part Y then X has-part Y.\n\nComment: 'Complex role subsumptions'.\nIf X is-part-of something that is-part-of Y then X is-part-of Y.\n" } }, "0c03d2ee143c402dbf620710558f3c20": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100px" } }, "0cfbf011af6241ebbcc675d701aac5be": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_99075eefb8ad4a5087de5fbfbb2e2a8c", "IPY_MODEL_26cf7a97df4f42b6af33ce787196e2da" ], "layout": "IPY_MODEL_4aafc9319e7743f8985cdc669f22cab5" } }, "0d966987252949d4be7543c6fca54e91": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_539ad52a012443da82f8fc51ab2f4b6c", "IPY_MODEL_a76345918cde4dd4ad4ca081281b94e6" ], "layout": "IPY_MODEL_5e407b23bfdc4c77a35bf3e583c0e0e6" } }, "0e81ba53de50448cba0d67cc1b204ea3": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_a270637c9421471a86a1a5fb0c90358f", "value": "eaten by Leo-01" } }, "0ee45e2151a74dfeb632f8622dfa620d": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "0ee4e8ad62ab43f4b5b438a66a7f42b5": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "14a3707b104b4e2eb1eb5423c506f3e0": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_39395d43deb54c8e91415baf9aca56b2" } }, "156d68322d1e4dd3a0fbfab1be1688bf": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_585c9fe15e494126a1116a5e5f8e87e4" } }, "1786ad24fa9d463aa9ad86dcacd6b971": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "17f3ad9162db4104a65795f20d5f0075": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "194e683e49954beab66c82f87eec0560": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "cursor": 15, "hints": "<natural number>", "hintsX": 9, "layout": "IPY_MODEL_54500e1db47043b29c2725eaf17f81f6", "value": "eaten by Leo-01" } }, "197ff87aa0754c10a5bf9d6054ec2664": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_416b7202da814b9095cb90fed53606c3", "IPY_MODEL_dd75b77ca52a43a9868c62b289a4e4e1" ], "layout": "IPY_MODEL_c7fe458b7f814978a92e90b0b53c295c" } }, "1a817713ce83451c8259b7b8600da6fb": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "1d27dea574734e228e02e981579f0e48": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_037f1754f4dd4ad58c88763c16de89de", "value": "Sophie loves Leo.\nLeo loves Sophie." } }, "22275249b4964692bbda1b6c7faf7f47": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_670789803c044d699064f4d8d85c169a", "IPY_MODEL_b3aca64dc8c740feae0ac17d0679814c" ], "layout": "IPY_MODEL_9b0f9a23e3574472b084a63a42c18088" } }, "2401f4a10a284f68920b1eb13a0ef3f1": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_d810833472c54ff1a38f821261445bdb" } }, "260916fd573c4e118c8d6fdeed6c1d4d": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "26cf7a97df4f42b6af33ce787196e2da": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_c370339aafb24857915cb2b2d2ab7980" } }, "27ad5c8d383e457a9920d5cb29f64853": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_df59fa382ea5464699bf03b221ac05e1" } }, "27cf37417f84476da68ac933a85143a5": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_6834615b88754ba992949979ad4896da", "value": "eaten by Leo-01" } }, "282ed86a1e9f475ab92778daa6256ae2": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "2a02773588a34d31a60ab56ea873ef24": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "2a57077dcfc6408f910fcdd1069fb533": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100px" } }, "2b1178c8982c4d7f8bd00f05c2a0ab9f": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "2ee595c943434b3288bd80d13a391707": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_6b665fd9cf6b45d0ade1db84533996f4" } }, "30b370db0cbd4590a28eeacadd095188": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_540624d791b04c72a5f6de35ef203a09", "IPY_MODEL_5b7a7dc340b8488b8d7616e1a0e4e954" ], "layout": "IPY_MODEL_6b3a1654ff064f0aaf274b3478288a8f" } }, "31026f2d97cf487b9752010b7a2245d8": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "31401dde148b42c6b6dee0ee84db65b2": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "31f03381b8af43c8b7b31448e2494891": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_830d5ee0e72742cbb9c50e698f8db857", "IPY_MODEL_87dbf123720c4818bdda118bfdbb7cda" ], "layout": "IPY_MODEL_798ac8c8baa148b68188dc60d84de5fe" } }, "32c35855b62a47c19571fb460d5624ca": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_c2922a5ec6e44f0fa89f7993482f603c" } }, "341331d0bde34d979b78eac118690943": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "34a127ddc9f3425d855562e734e8582e": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "355b5ed96daf48f38e261d20f99eb26b": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_8b7f1503cd5d4af7bedb96db2bc9826b", "IPY_MODEL_3d934eb24f9b4005b831504a0e4baa3e" ], "layout": "IPY_MODEL_0ee4e8ad62ab43f4b5b438a66a7f42b5" } }, "379b403b772848b184590efb077753db": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "38238e85b5bb4623a8ef8b3af0729a67": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "39395d43deb54c8e91415baf9aca56b2": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "3b1a40f830074716a6e231843f57b70b": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_913a7e5abd4b49129540cff6ec10a497", "IPY_MODEL_c1cc842e2c754beaaa916279adfd386c", "IPY_MODEL_7f5f02928259415f96e74be67775d5c4" ], "layout": "IPY_MODEL_a6c9444b34984cd982b748b663e0080e" } }, "3d934eb24f9b4005b831504a0e4baa3e": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_f2dac51fb55347f2bf9f5f781b9e4558" } }, "3e2147d0702741bbb1963715683ba2ff": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_55f4f87242224575b52e41afa40e5e2d" } }, "4039c44a6b81427881c64dbe368c3771": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_7ffcc5da836a4772ad6190ded79997f7", "IPY_MODEL_156d68322d1e4dd3a0fbfab1be1688bf" ], "layout": "IPY_MODEL_282ed86a1e9f475ab92778daa6256ae2" } }, "416b7202da814b9095cb90fed53606c3": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_bfdcdc39eeb04946a97cd9562372bc04", "value": "Sophie loves Leo.\nLeo loves Sophie." } }, "42805aa70f7945db96a25007c189bac0": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_d8f23781ffc74fb797fe78016d7b58e4", "value": "Every-single-thing that is a plant and-or is a plant-part is a herb.\nNo herb is an animal.\n\nEvery carnivore eats nothing-but animals.\nEvery lion eats nothing-but herbivores.\n\nEvery herbivore eats nothing-but herb.\n\nAnything either is a carnivore, is a herbivore or is an omnivore or-something-else.\nAnything either is a branch, is a leaf or is a twig or-something-else.\n\nNo giraffe is a lion.\nEvery palm-tree is not a tree.\n" } }, "43ef90ea44f7483cae76acd6a8bf06db": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100px" } }, "44ec82d679cf4ab798e2886850c6b206": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_8706eea102804d38bf7ff16d291e3773" } }, "44f37380178d4fa0a074af10221c17fa": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "45902f4b47f2487fb00f8eafb910887a": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_e16c8b4b7cb8450f87b6a37e7c8d2caf" } }, "4636ed4b6a9b4aa29f2b8c9efe57f732": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "cursor": 199, "hints": "Branch-01
Every
Every-single-thing
If
Leo-01
Mary-01
No
Nothing
Something
Sophie-01
The
X", "hintsX": 199, "layout": "IPY_MODEL_6bc39517a9044c0d95ed9158711c5ff5", "value": "Leo-01 is a lion.\nLeo-01 eats Sophie-01.\nSophie-01 is a giraffe.\nSophie-01 eats Leaf-01.\nMary-01 is a tree.\nLeaf-01 is a leaf and is-part-of Branch-02.\nBranch-02 is a branch and is-part-of Branch-01.\nBranch-01 is a branch and is-part-of Mary-01.\nBranch-03 is a branch." } }, "46b6bc391f7d47cb95796e1c5effa3cb": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "48a844c1f16d4e0f89888a38f9f871b1": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "490fd126b35c4016a45f2265268f5ef0": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_2a02773588a34d31a60ab56ea873ef24", "value": "Every carnivorous-plant must eat an animal.\nEvery carnivor must eat an animal.\nEvery omnivore must eat a plant.\nEvery branch must be-part-of a tree.\nEvery plant-part must be-part-of a plant.\n\nComment: 'Role equivalence and inverted roles'.\nX has-part Y if-and-only-if Y is-part-of X.\nX eats Y if-and-only-if Y is-eaten-by X.\n\nComment: 'Role subsumptions'.\nIf X is-part-of Y then X is-part-of Y.\nIf X has-part something that has-part Y then X has-part Y.\n\nComment: 'Complex role subsumptions'.\nIf X is-part-of something that is-part-of Y then X is-part-of Y.\n" } }, "4974f63235624cb0950d09b959338aac": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_4636ed4b6a9b4aa29f2b8c9efe57f732", "IPY_MODEL_8f2ee93c18ed4583894db21311e14ed9" ], "layout": "IPY_MODEL_df45bd0d614e4f8dbc1d38058dc993e7" } }, "4a322469244d444ca5d1bcb372403f27": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "4a569f7988e8471dafe05c22d22bd4ea": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "cursor": 173, "hints": "<Proper-Name>
Every
Every-single-thing
If
No
Nothing
Something
The
X", "hintsX": 173, "layout": "IPY_MODEL_4a322469244d444ca5d1bcb372403f27", "value": "Every-single-thing that is a plant and-or is a plant-part is a herb.\nNo herb is an animal.\n\nEvery carnivore eats nothing-but animals.\nEvery lion eats nothing-but herbivores.\n\nEvery herbivore eats nothing-but herb.\n\nAnything either is a carnivore, is a herbivore or is an omnivore or-something-else.\nAnything either is a branch, is a leaf or is a twig or-something-else.\n\nNo giraffe is a lion.\nEvery palm-tree is not a tree.\n" } }, "4aafc9319e7743f8985cdc669f22cab5": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "4d3213ec0b2c4ad69c1a66a3369ab474": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_e736dda042e74aac96c321bed782241e", "IPY_MODEL_7cb5ce8716bf4a209b03b4910d97a0e2" ], "layout": "IPY_MODEL_6dfbc4a9245c453fb126ea93c284477f" } }, "4d859fd0df3e4b1099684200a4f5ea13": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "4f0a97990f8943818fc14ed4fd385830": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_ea50e21fc54b4d97b922faa6337bdfe7" } }, "5090cbb5c3614e3aa2338670571106e5": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "50e4b95344d64a99b4f7543b017bf5a4": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "50f1befbf50548f9869037abe911c6c2": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_d9c2b88b505b48a4b6c2c57cd93f7776" } }, "5143fe6b6b2e4bdbb95db4836c07f69f": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_31401dde148b42c6b6dee0ee84db65b2", "value": "Leo-01 is a lion.\nLeo-01 eats Sophie-01.\nSophie-01 is a giraffe.\nLeo-01 eats Mary-01.\nMary-01 is a palm-tree.\n" } }, "52741d97d4f0452e8bffb57f6e008c08": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_6533daa061d643ad86927f2662f4d33a", "value": "Namespace: 'http://cognitum.eu/african_wildlife'.\n\nComment: 'Let's name our instances'.\nComment: 'Let's specify the hierarchy of beings'. \nComment: 'What is what?'.\nEvery man has a train.\nEvery lion is an animal.\nEvery giraffe is an animal.\n\nEvery animal has a face. \n\nComment: 'Moreover'.\nEvery impala is an animal.\nEvery omnivore is an animal. \nEvery rock-dassie is an animal.\nEvery warthog is an animal.\nEvery carnivore is an animal.\nEvery herbivore is an animal.\nEvery elephant is a herbivore.\nEvery lion is carnivore.\n\nComment: 'There are also plants there:'.\nEvery tree is a plant.\nEvery grass is a plant.\nEvery palm-tree is a plant.\n\nEvery branch is a plant-part.\nEvery leaf is a plant-part.\nEvery twig is a plant-part.\n\nEvery phloem is a plant-part.\nEvery root is a plant-part.\nEvery parsnip is a root.\nEvery stem is a plant-part.\nEvery xylem is a plant-part.\nEvery fruiting-body is a plant-part.\nEvery berry is a fruiting-body.\nEvery apple is a fruiting-body.\n\nComment: 'We cannot use adjectives directly. To specify adjectives we need to transform them into sets that have form of buzzy-words'.\nEvery tasty-plant is a plant.\nEvery carnivorous-plant is a plant.\n" } }, "539ad52a012443da82f8fc51ab2f4b6c": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_efcb094f11be4d558dfe247c7614db95", "value": "eaten by Leo-01" } }, "53d2d5ec4eab4bdf933e894b49974ec1": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "540624d791b04c72a5f6de35ef203a09": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "cursor": 171, "hintT": "!!!SYNTAX ERROR!!!", "hints": "!!!SYNTAX ERROR!!!", "hintsX": 169, "layout": "IPY_MODEL_0ee45e2151a74dfeb632f8622dfa620d", "value": "Namespace: 'http://cognitum.eu/african_wildlife'.\n\nComment: 'Lets name our instances'.\nComment: 'Lets specify the hierarchy of beings'. \nComment: 'What is what?'.\nEvery ma\nEvery lion is an animal.\nEvery giraffe is an animal.\n\nComment: 'Moreover'.\nEvery impala is an animal.\nEvery omnivore is an animal. \nEvery rock-dassie is an animal.\nEvery warthog is an animal.\nEvery carnivore is an animal.\nEvery herbivore is an animal.\nEvery elephant is a herbivore.\nEvery lion is carnivore.\n\nComment: 'There are also plants there:'.\nEvery tree is a plant.\nEvery grass is a plant.\nEvery palm-tree is a plant.\n\nEvery branch is a plant-part.\nEvery leaf is a plant-part.\nEvery twig is a plant-part.\n\nEvery phloem is a plant-part.\nEvery root is a plant-part.\nEvery parsnip is a root.\nEvery stem is a plant-part.\nEvery xylem is a plant-part.\nEvery fruiting-body is a plant-part.\nEvery berry is a fruiting-body.\nEvery apple is a fruiting-body.\n\nComment: 'We cannot use adjectives directly. To specify adjectives we need to transform them into sets that have form of buzzy-words'.\nEvery tasty-plant is a plant.\nEvery carnivorous-plant is a plant.\n" } }, "54500e1db47043b29c2725eaf17f81f6": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "54e213dd70db416783e9f4dd9eb8473a": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_68ff3e69ff0948c7b1d6ea2e0727d6f1", "IPY_MODEL_cdb640c492eb40d986642b7b0cf89db1" ], "layout": "IPY_MODEL_43ef90ea44f7483cae76acd6a8bf06db" } }, "55bb21d754f845a0b76771e91480da21": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_08c30bf83c284e6ebe21cc3249cd99ba", "IPY_MODEL_8e63218be8c84392b59914249922d662" ], "layout": "IPY_MODEL_e278e56780d1428c826f7d861d407183" } }, "55f4f87242224575b52e41afa40e5e2d": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "56a2eb99cf15417e8568cc49848857f1": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_7e5fec00c2ad42f1b02a76e0e2b34c6d", "value": "Every carnivorous-plant must eat an animal.\nEvery carnivor must eat an animal.\nEvery omnivore must eat a plant.\nEvery branch must be-part-of a tree.\nEvery plant-part must be-part-of a plant.\n\nComment: 'Role equivalence and inverted roles'.\nX has-part Y if-and-only-if Y is-part-of X.\nX eats Y if-and-only-if Y is-eaten-by X.\n\nComment: 'Role subsumptions'.\nIf X is-part-of Y then X is-part-of Y.\nIf X has-part something that has-part Y then X has-part Y.\n\nComment: 'Complex role subsumptions'.\nIf X is-part-of something that is-part-of Y then X is-part-of Y.\n" } }, "585c9fe15e494126a1116a5e5f8e87e4": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "5aea4cc758c6473193e64e8a9da92f28": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "5b7a7dc340b8488b8d7616e1a0e4e954": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_72f03a0887ce493bb7e9983353e95041" } }, "5ca39e2e45c9445eb22413a85950317f": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "5e407b23bfdc4c77a35bf3e583c0e0e6": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100px" } }, "5f92d7eda9e4489591fce827af8d659b": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "6140f382320b46d8bf1bbe77cd6ff9d2": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_63c4a550777447f1896522d0db7ab5f5", "IPY_MODEL_50f1befbf50548f9869037abe911c6c2" ], "layout": "IPY_MODEL_50e4b95344d64a99b4f7543b017bf5a4" } }, "637bf119d26145cd9b1c74a314f17fb0": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "63c4a550777447f1896522d0db7ab5f5": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "cursor": 1198, "hints": "Every
Every-single-thing
If
Leo
No
Nothing
Something
Sophie
The
X", "hintsX": 1198, "layout": "IPY_MODEL_f4ea8cdd8b5c4157a727af4af9d67cb3", "value": "Title: 'African Wildlife'.\nAuthor: 'Paweł Kapłański'.\nBased-On: \n 'A Semantic Web Primer.'\n 'Antoniou, G, van Harmelen, F.'\n 'MIT Press, 2003.'\n 'http://www.csd.uoc.gr/~hy566/SWbook.pdf'\n.\n\nComment:\n////// Examples of Possible Questions ///////////////////////////// \n//Who-Or-What:\n// * is a carnivore ? \n// * is an herbivore ? \n// * is an animal that eats grass ? \n// * is-part-of a tree ? \n// * is eaten by lion? \n////////////////////////////////////////////////////////////////////.\n\n\n\nPart-1: 'simple hierarchy of beings'.\n\nComment: 'Lets name our instances'.\nSophie is a giraffe.\nLeo is a lion.\n\nComment: 'Lets specify the hierarchy of beings'. \nComment: 'What is what?'.\nEvery lion is an animal.\nEvery giraffe is an animal.\n\nComment: 'Moreover'.\nEvery impala is an animal.\nEvery omnivore is an animal.\nEvery rock-dassie is an animal.\nEvery warthog is an animal.\nEvery carnivore is an animal.\nEvery herbivore is an animal.\nEvery elephant is a herbivore.\n\nComment: 'There are also plants there:'.\nEvery tree is a plant.\nEvery grass is a plant.\nEvery palm-tree is a plant.\n\nPart-2: adjectives and specifications.\n\nComment: 'We cannot use adjectives directly'.\nComment: 'To specify adjectives we need to transform them into sets that have form of buzzy-words'.\n\nEvery tasty-plant is a plant.\nEvery carnivorous-plant is a plant.\n\nComment: 'Similarly we can do to make something more and more specific'.\nEvery branch is a plant-part.\nEvery phloem is a plant-part.\nEvery root is a plant-part.\nEvery parsnip is a root.\nEvery stem is a plant-part.\nEvery twig is a plant-part.\nEvery xylem is a plant-part.\nEvery leaf is a plant-part.\nEvery fruiting-body is a plant-part.\nEvery berry is a fruiting-body.\nEvery apple is a fruiting-body.\n\nPart-3: Disjointness.\n\nComment: 'We deal with Open World Assumption, therefore we need to specify explicitly if two things are different'.\nComment: 'E.g.: We need to specify explicitly that animal is not a plant'.\nEvery animal is not a plant.\nEvery giraffe is not a lion.\nEvery palm-tree is not a tree.\n\nComment: 'Or we can use it - it means the same'.\nNo animal is a plant.\n\nPart-4: Simple relations.\n\nComment: To specify relation beetween beings.\nEvery lion eats an impala.\nEvery carnivorous-plant eats an animal.\n\nComment: 'I.e. be part of is a part-whole relation'.\nEvery branch is-part-of a tree.\nEvery plant-part is-proper-part-of a plant.\nEvery xylem is-proper-part-of a stem.\nEvery phloem is-proper-part-of a stem.\n\nComment: 'Specifying the range of relation. The difference? One is that lion eats impala. Second that it eats only herbivore' -> impala must be herbivore.\nEvery lion eats nothing-but herbivores.\n\nPart-5: 'Complex relations'.\n\nEvery palm-tree has-part that is not a branch.\nEvery warthog eats an animal and eats a fruiting-body and eats a grass and eats a root.\nEvery giraffe eats nothing-but things that are leaves and-or are twigs.\nEvery leaf is-part-of something that is a branch and-or is a twig.\nEvery tasty-plant is-eaten-by a carnivore and is-eaten-by a herbivore.\nEvery-single-thing eats nothing-but things that are animals and-or are plants and-or are-part-of animals and-or are-part-of plants.\n\nPart-6: 'Reflexion'.\n\nNothing is-proper-part-of itself.\n\nPart-7: Equivalence.\n\nComment: 'What it means to be a carnivore, omnivore or herbivore? We specify exact definitions here.'.\nEvery-single-thing that eats nothing-but animals and-or eats nothing-but things that are-part-of animals is a carnivore.\nSomething is an omnivore if-and-only-if-it eats an animal and eats a plant and eats something that is-part-of an animal and-or is-part-of a plant.\nSomething is a herbivore if-and-only-if-it eats nothing-but plants and-or eats nothing-but things that are-part-of plants.\n\nPart-8: 'Disjointness'.\n\nAnything either is a carnivore, is a herbivore or is an omnivore or-something-else.\nAnything either is a branch, is a leaf or is a twig or-something-else.\n\nPart-9: 'Relations between roles'.\n\nComment: 'Role equivalence and inverted roles'.\nX has-part Y if-and-only-if Y is-part-of X.\nX eats Y if-and-only-if Y is-eaten-by X.\n\nComment: 'Role subsumptions'.\nIf X is-proper-part-of Y then X is-part-of Y.\nIf X has-part something that has-part Y then X has-part Y.\n\nComment: 'Complex role subsumptions'.\nIf X is-part-of something that is-part-of Y then X is-part-of Y." } }, "6533daa061d643ad86927f2662f4d33a": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "66578ffca1f043118425062dc0b6f067": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_27cf37417f84476da68ac933a85143a5", "IPY_MODEL_f81355e7f2a34681bf8ca14e71dbf938" ], "layout": "IPY_MODEL_f79246661c1941fb8047812a618edbea" } }, "66cefaa10ba1472a846b969c45384ec0": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_6c33a33ec84a476ea62d3b987b12a532", "IPY_MODEL_85f2cc17df4e4e429f3682d5f1a9d2a5" ], "layout": "IPY_MODEL_637bf119d26145cd9b1c74a314f17fb0" } }, "670789803c044d699064f4d8d85c169a": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_8e2009ebcf134448a2ad52b7cc6c4b26", "value": "Every-single-thing that is a plant and-or is a plant-part is a herb.\nNo herb is an animal.\n\nEvery carnivore eats nothing-but animals.\nEvery lion eats nothing-but herbivores.\n\nEvery herbivore eats nothing-but herb.\n\nAnything either is a carnivore, is a herbivore or is an omnivore or-something-else.\nAnything either is a branch, is a leaf or is a twig or-something-else.\n\nNo giraffe is a lion.\nEvery palm-tree is not a tree.\n" } }, "6834615b88754ba992949979ad4896da": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "687f88667abb40929c0d1ac2acbc9281": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_df07f4cbd3574e08868b7543bb5cb15a", "value": "Leo-01 is a lion.\nLeo-01 eats Sophie-01.\nSophie-01 is a giraffe.\nLeo-01 eats Mary-01.\nMary-01 is a palm-tree.\n" } }, "68ff3e69ff0948c7b1d6ea2e0727d6f1": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_2b1178c8982c4d7f8bd00f05c2a0ab9f", "value": "an animal that loves " } }, "69339d07f80c4b42a0ca64e1e93f2940": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_db4059a12cb34224934499d5b329f6c6" } }, "6aa31e6afab149709b6959eea67ee56c": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_45902f4b47f2487fb00f8eafb910887a", "IPY_MODEL_97e7b2be34da4941b3574d6dcb529205", "IPY_MODEL_7cde6c6efb3c4fe7ab570e9500f16346" ], "layout": "IPY_MODEL_f9ced4f7f8f84c4cbed97f862b03e763" } }, "6b3a1654ff064f0aaf274b3478288a8f": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "6b665fd9cf6b45d0ade1db84533996f4": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "6bc39517a9044c0d95ed9158711c5ff5": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "6c33a33ec84a476ea62d3b987b12a532": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_5ca39e2e45c9445eb22413a85950317f", "value": "Leo-01 is a lion.\nLeo-01 eats Sophie-01.\nSophie-01 is a giraffe.\nLeo-01 eats Mary-01.\nMary-01 is a palm-tree.\n" } }, "6dfbc4a9245c453fb126ea93c284477f": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "6efe96677c81493984458e090777460c": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "6fa9e122a4ca4267832285e9f3983bba": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "6ffa4ff23e4f43e1ab1dfa1bec10c4ee": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_d54e4a0ee8f44ecbb8074b55bef1cad5" } }, "704fa12b89334f67b30097d1c39534c9": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "727588c8af22452182710e9c54750d83": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_c4809ee837e84bbba2bd1dc44a5cdc69" } }, "72b37b61f1ba4540bd4dafa460795b8e": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "72f03a0887ce493bb7e9983353e95041": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "7358c3b0bfc140b7ad1d635020c852a5": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_791a2bc1ba2c4ed98805765076095f71", "IPY_MODEL_a551c169f0f44b0d8ed33f34d5a4ea9d" ], "layout": "IPY_MODEL_2a57077dcfc6408f910fcdd1069fb533" } }, "767e327a5f9545d2b9ccc3f617e61e50": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_44ec82d679cf4ab798e2886850c6b206", "IPY_MODEL_e65e067cfdfa4e8eabc514464b7e6d79", "IPY_MODEL_32c35855b62a47c19571fb460d5624ca" ], "layout": "IPY_MODEL_6efe96677c81493984458e090777460c" } }, "791a2bc1ba2c4ed98805765076095f71": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_99f9f6e0b26a4e73858dfbb6017ccbb8", "value": "an animal that loves " } }, "798ac8c8baa148b68188dc60d84de5fe": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "7cb5ce8716bf4a209b03b4910d97a0e2": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_72b37b61f1ba4540bd4dafa460795b8e" } }, "7cde6c6efb3c4fe7ab570e9500f16346": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_eb7f5c7b600f433dbe22183849e5f30b" } }, "7e5fec00c2ad42f1b02a76e0e2b34c6d": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "7f5f02928259415f96e74be67775d5c4": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_f1e6f830e9f945efb4e325a458679887" } }, "7ffcc5da836a4772ad6190ded79997f7": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "cursor": 162, "hints": "<Proper-Name>
Every
Every-single-thing
If
No
Nothing
Something
The
X", "hintsX": 162, "layout": "IPY_MODEL_cb714303465343599e7daddd09b77893", "value": "Namespace: 'http://cognitum.eu/african_wildlife'.\n\nComment: 'Lets name our instances'.\nComment: 'Lets specify the hierarchy of beings'. \nComment: 'What is what?'.\nEvery man has a train.\nEvery lion is an animal.\nEvery giraffe is an animal.\n\nComment: 'Moreover'.\nEvery impala is an animal.\nEvery omnivore is an animal. \nEvery rock-dassie is an animal.\nEvery warthog is an animal.\nEvery carnivore is an animal.\nEvery herbivore is an animal.\nEvery elephant is a herbivore.\nEvery lion is carnivore.\n\nComment: 'There are also plants there:'.\nEvery tree is a plant.\nEvery grass is a plant.\nEvery palm-tree is a plant.\n\nEvery branch is a plant-part.\nEvery leaf is a plant-part.\nEvery twig is a plant-part.\n\nEvery phloem is a plant-part.\nEvery root is a plant-part.\nEvery parsnip is a root.\nEvery stem is a plant-part.\nEvery xylem is a plant-part.\nEvery fruiting-body is a plant-part.\nEvery berry is a fruiting-body.\nEvery apple is a fruiting-body.\n\nComment: 'We cannot use adjectives directly. To specify adjectives we need to transform them into sets that have form of buzzy-words'.\nEvery tasty-plant is a plant.\nEvery carnivorous-plant is a plant.\n" } }, "8299fafb9989402e9259aa0b848881e2": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_17f3ad9162db4104a65795f20d5f0075", "value": "Leo-01 is a lion.\nLeo-01 eats Sophie-01.\nSophie-01 is a giraffe.\nSophie-01 eats Leaf-01.\nMary-01 is a tree.\nLeaf-01 is a leaf and is-part-of Branch-02.\nBranch-02 is a branch and is-part-of Branch-01.\nBranch-01 is a branch and is-part-of Mary-01.\nBranch-03 is a branch." } }, "830d5ee0e72742cbb9c50e698f8db857": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "cursor": 186, "hintT": "!!!SYNTAX ERROR!!!\r\n\r\nEvery ma\r\nEvery lion is an animal.", "hints": "!!!SYNTAX ERROR!!!\r\n\r\nEvery ma\r\nEvery lion is an animal.", "hintsX": 186, "layout": "IPY_MODEL_f7410d5947704d05b636e488c607ec0e", "value": "Namespace: 'http://cognitum.eu/african_wildlife'.\n\nComment: 'Lets name our instances'.\nComment: 'Lets specify the hierarchy of beings'. \nComment: 'What is what?'.\nEvery man has a train.\nEvery lion is an animal.\nEvery giraffe is an animal.\n\nComment: 'Moreover'.\nEvery impala is an animal.\nEvery omnivore is an animal. \nEvery rock-dassie is an animal.\nEvery warthog is an animal.\nEvery carnivore is an animal.\nEvery herbivore is an animal.\nEvery elephant is a herbivore.\nEvery lion is carnivore.\n\nComment: 'There are also plants there:'.\nEvery tree is a plant.\nEvery grass is a plant.\nEvery palm-tree is a plant.\n\nEvery branch is a plant-part.\nEvery leaf is a plant-part.\nEvery twig is a plant-part.\n\nEvery phloem is a plant-part.\nEvery root is a plant-part.\nEvery parsnip is a root.\nEvery stem is a plant-part.\nEvery xylem is a plant-part.\nEvery fruiting-body is a plant-part.\nEvery berry is a fruiting-body.\nEvery apple is a fruiting-body.\n\nComment: 'We cannot use adjectives directly. To specify adjectives we need to transform them into sets that have form of buzzy-words'.\nEvery tasty-plant is a plant.\nEvery carnivorous-plant is a plant.\n" } }, "85f2cc17df4e4e429f3682d5f1a9d2a5": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_379b403b772848b184590efb077753db" } }, "865ed95805f44073ac10f4b4757bd1a0": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "8706eea102804d38bf7ff16d291e3773": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "87dbf123720c4818bdda118bfdbb7cda": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_daee7295113f4ab588ec50dacbc01003" } }, "88e3f3eb628649cbaa595601364bada4": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "89b1bde40ddb4abf9ac1d1cd90dd345a": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100px" } }, "8b344392a0d344158becbf95c37546c6": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_56a2eb99cf15417e8568cc49848857f1", "IPY_MODEL_f81dc3d2747142f9ac59bd2ccb85dc67" ], "layout": "IPY_MODEL_f7e95e3d43544ddfb6c69338a006cace" } }, "8b52933a93d84df1bc039f960cacf560": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_b0bf749d3aa54cb5876f768752e013e2" } }, "8b7f1503cd5d4af7bedb96db2bc9826b": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_b18557280c0d4e1b827179460da45136", "value": "Leo-01 is a lion.\nLeo-01 eats Sophie-01.\nSophie-01 is a giraffe.\nSophie-01 eats Leaf-01.\nMary-01 is a tree.\nLeaf-01 is a leaf and is-part-of Branch-02.\nBranch-02 is a branch and is-part-of Branch-01.\nBranch-01 is a branch and is-part-of Mary-01.\nBranch-03 is a branch." } }, "8e2009ebcf134448a2ad52b7cc6c4b26": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "8e63218be8c84392b59914249922d662": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_5aea4cc758c6473193e64e8a9da92f28" } }, "8f2ee93c18ed4583894db21311e14ed9": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_38238e85b5bb4623a8ef8b3af0729a67" } }, "91212d33087f4872ab96d1d2adac582a": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_6fa9e122a4ca4267832285e9f3983bba" } }, "913a7e5abd4b49129540cff6ec10a497": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_ab77ec64345341d398b7c723c3d8ea33" } }, "951c1fa30fea488a8ae1578cede4b5fe": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "9536c1856e8a487d8c68984e25b441ce": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "9767af0ad60a4f4f84f6fffb5b1addb8": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "97e7b2be34da4941b3574d6dcb529205": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_53d2d5ec4eab4bdf933e894b49974ec1", "value": "Every-single-thing that is a plant and-or is a plant-part is a herb.\nNo herb is an animal.\n\nEvery carnivore eats nothing-but animals.\nEvery lion eats nothing-but herbivores.\n\nEvery herbivore eats nothing-but herb.\n\nAnything either is a carnivore, is a herbivore or is an omnivore or-something-else.\nAnything either is a branch, is a leaf or is a twig or-something-else.\n\nNo giraffe is a lion.\nEvery palm-tree is not a tree.\n" } }, "99075eefb8ad4a5087de5fbfbb2e2a8c": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_9febe76887f34e8e9ea439b3d6a469bc", "value": "Comment: 'Lets name our instances'.\nComment: 'Lets specify the hierarchy of beings'. \nComment: 'What is what?'.\n\nEvery lion is an animal.\nEvery giraffe is an animal.\n\nComment: 'Moreover'.\nEvery impala is an animal.\nEvery omnivore is an animal.\nEvery rock-dassie is an animal.\nEvery warthog is an animal.\nEvery carnivore is an animal.\nEvery herbivore is an animal.\nEvery elephant is a herbivore.\nEvery lion is carnivore.\n\nComment: 'There are also plants there:'.\nEvery tree is a plant.\nEvery grass is a plant.\nEvery palm-tree is a plant.\n\nEvery branch is a plant-part.\nEvery leaf is a plant-part.\nEvery twig is a plant-part.\n\nEvery phloem is a plant-part.\nEvery root is a plant-part.\nEvery parsnip is a root.\nEvery stem is a plant-part.\nEvery xylem is a plant-part.\nEvery fruiting-body is a plant-part.\nEvery berry is a fruiting-body.\nEvery apple is a fruiting-body.\n\nComment: 'We cannot use adjectives directly. To specify adjectives we need to transform them into sets that have form of buzzy-words'.\nEvery tasty-plant is a plant.\nEvery carnivorous-plant is a plant.\n" } }, "99f9f6e0b26a4e73858dfbb6017ccbb8": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "9b0f9a23e3574472b084a63a42c18088": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "9d7f76b3359049b99071eba73b8dc427": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_4a569f7988e8471dafe05c22d22bd4ea", "IPY_MODEL_727588c8af22452182710e9c54750d83" ], "layout": "IPY_MODEL_9536c1856e8a487d8c68984e25b441ce" } }, "9febe76887f34e8e9ea439b3d6a469bc": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "a1d343a6e9ab47b999491d584f4d747b": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_42805aa70f7945db96a25007c189bac0", "IPY_MODEL_4f0a97990f8943818fc14ed4fd385830" ], "layout": "IPY_MODEL_c1e34aeacb524c99a1c32e8cc8c9413a" } }, "a23f3db72e844fd38d5d05b950980e06": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "a270637c9421471a86a1a5fb0c90358f": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "a2c7154564514724af74f1f72cd039df": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_194e683e49954beab66c82f87eec0560", "IPY_MODEL_e26922aed1324c3cb824535d8f1eba7a" ], "layout": "IPY_MODEL_89b1bde40ddb4abf9ac1d1cd90dd345a" } }, "a551c169f0f44b0d8ed33f34d5a4ea9d": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_9767af0ad60a4f4f84f6fffb5b1addb8" } }, "a6c9444b34984cd982b748b663e0080e": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "a6d8f4abcb594d9c8c0df1d48de451e1": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "a76345918cde4dd4ad4ca081281b94e6": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_eb60a5c7b71b42e096ca618392a788d4" } }, "a83fc2b5087147fda70ef91ec71c9636": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_44f37380178d4fa0a074af10221c17fa", "value": "Namespace: 'http://cognitum.eu/african_wildlife'.\n\nComment: 'Lets name our instances'.\nComment: 'Lets specify the hierarchy of beings'. \nComment: 'What is what?'.\nEvery ma\nEvery lion is an animal.\nEvery giraffe is an animal.\n\nComment: 'Moreover'.\nEvery impala is an animal.\nEvery omnivore is an animal. \nEvery rock-dassie is an animal.\nEvery warthog is an animal.\nEvery carnivore is an animal.\nEvery herbivore is an animal.\nEvery elephant is a herbivore.\nEvery lion is carnivore.\n\nComment: 'There are also plants there:'.\nEvery tree is a plant.\nEvery grass is a plant.\nEvery palm-tree is a plant.\n\nEvery branch is a plant-part.\nEvery leaf is a plant-part.\nEvery twig is a plant-part.\n\nEvery phloem is a plant-part.\nEvery root is a plant-part.\nEvery parsnip is a root.\nEvery stem is a plant-part.\nEvery xylem is a plant-part.\nEvery fruiting-body is a plant-part.\nEvery berry is a fruiting-body.\nEvery apple is a fruiting-body.\n\nComment: 'We cannot use adjectives directly. To specify adjectives we need to transform them into sets that have form of buzzy-words'.\nEvery tasty-plant is a plant.\nEvery carnivorous-plant is a plant.\n" } }, "ab77ec64345341d398b7c723c3d8ea33": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "ac2b910f6f714657b031543b3c3820f6": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "aca02ad5a33a4786af036a02601ea45d": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_6ffa4ff23e4f43e1ab1dfa1bec10c4ee", "IPY_MODEL_e95aa04a0587464ba4602b494ff2b472", "IPY_MODEL_14a3707b104b4e2eb1eb5423c506f3e0" ], "layout": "IPY_MODEL_5090cbb5c3614e3aa2338670571106e5" } }, "acf1c5a99f7843fd8fe8da70d0aac47f": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "cursor": 1198, "hints": "Every
Every-single-thing
If
Leo
No
Nothing
Something
Sophie
The
X", "hintsX": 1198, "layout": "IPY_MODEL_1a817713ce83451c8259b7b8600da6fb", "value": "Title: 'African Wildlife'.\nAuthor: 'Paweł Kapłański'.\nBased-On: \n 'A Semantic Web Primer.'\n 'Antoniou, G, van Harmelen, F.'\n 'MIT Press, 2003.'\n 'http://www.csd.uoc.gr/~hy566/SWbook.pdf'\n.\n\nComment:\n////// Examples of Possible Questions ///////////////////////////// \n//Who-Or-What:\n// * is a carnivore ? \n// * is an herbivore ? \n// * is an animal that eats grass ? \n// * is-part-of a tree ? \n// * is eaten by lion? \n////////////////////////////////////////////////////////////////////.\n\n\n\nPart-1: 'simple hierarchy of beings'.\n\nComment: 'Lets name our instances'.\nSophie is a giraffe.\nLeo is a lion.\n\nComment: 'Lets specify the hierarchy of beings'. \nComment: 'What is what?'.\nEvery lion is an animal.\nEvery giraffe is an animal.\n\nComment: 'Moreover'.\nEvery impala is an animal.\nEvery omnivore is an animal.\nEvery rock-dassie is an animal.\nEvery warthog is an animal.\nEvery carnivore is an animal.\nEvery herbivore is an animal.\nEvery elephant is a herbivore.\n\nComment: 'There are also plants there:'.\nEvery tree is a plant.\nEvery grass is a plant.\nEvery palm-tree is a plant.\n\nPart-2: adjectives and specifications.\n\nComment: 'We cannot use adjectives directly'.\nComment: 'To specify adjectives we need to transform them into sets that have form of buzzy-words'.\n\nEvery tasty-plant is a plant.\nEvery carnivorous-plant is a plant.\n\nComment: 'Similarly we can do to make something more and more specific'.\nEvery branch is a plant-part.\nEvery phloem is a plant-part.\nEvery root is a plant-part.\nEvery parsnip is a root.\nEvery stem is a plant-part.\nEvery twig is a plant-part.\nEvery xylem is a plant-part.\nEvery leaf is a plant-part.\nEvery fruiting-body is a plant-part.\nEvery berry is a fruiting-body.\nEvery apple is a fruiting-body.\n\nPart-3: Disjointness.\n\nComment: 'We deal with Open World Assumption, therefore we need to specify explicitly if two things are different'.\nComment: 'E.g.: We need to specify explicitly that animal is not a plant'.\nEvery animal is not a plant.\nEvery giraffe is not a lion.\nEvery palm-tree is not a tree.\n\nComment: 'Or we can use it - it means the same'.\nNo animal is a plant.\n\nPart-4: Simple relations.\n\nComment: To specify relation beetween beings.\nEvery lion eats an impala.\nEvery carnivorous-plant eats an animal.\n\nComment: 'I.e. be part of is a part-whole relation'.\nEvery branch is-part-of a tree.\nEvery plant-part is-proper-part-of a plant.\nEvery xylem is-proper-part-of a stem.\nEvery phloem is-proper-part-of a stem.\n\nComment: 'Specifying the range of relation. The difference? One is that lion eats impala. Second that it eats only herbivore' -> impala must be herbivore.\nEvery lion eats nothing-but herbivores.\n\nPart-5: 'Complex relations'.\n\nEvery palm-tree has-part that is not a branch.\nEvery warthog eats an animal and eats a fruiting-body and eats a grass and eats a root.\nEvery giraffe eats nothing-but things that are leaves and-or are twigs.\nEvery leaf is-part-of something that is a branch and-or is a twig.\nEvery tasty-plant is-eaten-by a carnivore and is-eaten-by a herbivore.\nEvery-single-thing eats nothing-but things that are animals and-or are plants and-or are-part-of animals and-or are-part-of plants.\n\nPart-6: 'Reflexion'.\n\nNothing is-proper-part-of itself.\n\nPart-7: Equivalence.\n\nComment: 'What it means to be a carnivore, omnivore or herbivore? We specify exact definitions here.'.\nEvery-single-thing that eats nothing-but animals and-or eats nothing-but things that are-part-of animals is a carnivore.\nSomething is an omnivore if-and-only-if-it eats an animal and eats a plant and eats something that is-part-of an animal and-or is-part-of a plant.\nSomething is a herbivore if-and-only-if-it eats nothing-but plants and-or eats nothing-but things that are-part-of plants.\n\nPart-8: 'Disjointness'.\n\nAnything either is a carnivore, is a herbivore or is an omnivore or-something-else.\nAnything either is a branch, is a leaf or is a twig or-something-else.\n\nPart-9: 'Relations between roles'.\n\nComment: 'Role equivalence and inverted roles'.\nX has-part Y if-and-only-if Y is-part-of X.\nX eats Y if-and-only-if Y is-eaten-by X.\n\nComment: 'Role subsumptions'.\nIf X is-proper-part-of Y then X is-part-of Y.\nIf X has-part something that has-part Y then X has-part Y.\n\nComment: 'Complex role subsumptions'.\nIf X is-part-of something that is-part-of Y then X is-part-of Y." } }, "b00a9fbb66484f79acacbff96553201c": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_da880ed987404926b0e5eef7d96d2e5a" } }, "b0bf749d3aa54cb5876f768752e013e2": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "b18557280c0d4e1b827179460da45136": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "b3aca64dc8c740feae0ac17d0679814c": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_0287b64412d1476fac61df9b498195e0" } }, "b6c1708eb8ab423fbc381678654dde18": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "cursor": 166, "hints": "<Proper-Name>
Every
Every-single-thing
If
No
Nothing
Something
The
X", "hintsX": 166, "layout": "IPY_MODEL_865ed95805f44073ac10f4b4757bd1a0", "value": "Comment: 'Lets name our instances'.\nComment: 'Lets specify the hierarchy of beings'. \nComment: 'What is what?'.\n\nEvery lion is an animal.\nEvery giraffe is an animal.\n\nComment: 'Moreover'.\nEvery impala is an animal.\nEvery omnivore is an animal.\nEvery rock-dassie is an animal.\nEvery warthog is an animal.\nEvery carnivore is an animal.\nEvery herbivore is an animal.\nEvery elephant is a herbivore.\nEvery lion is carnivore.\n\nComment: 'There are also plants there:'.\nEvery tree is a plant.\nEvery grass is a plant.\nEvery palm-tree is a plant.\n\nEvery branch is a plant-part.\nEvery leaf is a plant-part.\nEvery twig is a plant-part.\n\nEvery phloem is a plant-part.\nEvery root is a plant-part.\nEvery parsnip is a root.\nEvery stem is a plant-part.\nEvery xylem is a plant-part.\nEvery fruiting-body is a plant-part.\nEvery berry is a fruiting-body.\nEvery apple is a fruiting-body.\n\nComment: 'We cannot use adjectives directly. To specify adjectives we need to transform them into sets that have form of buzzy-words'.\nEvery tasty-plant is a plant.\nEvery carnivorous-plant is a plant.\n" } }, "ba703b23f64a4ac9bc68ac9552802303": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "bb14a3aef3864813a7002faff9fc6b16": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "cursor": 89, "hints": "<natural number>", "hintsX": 80, "layout": "IPY_MODEL_c17c106402064e86b728cf51a20e3f93", "value": "Leo-01 is a lion.\nLeo-01 eats Sophie-01.\nSophie-01 is a giraffe.\nSophie-01 eats Branch-01.\nMary-01 is a tree.\nBranch-01 is a branch and is-proper-part-of Mary-01.\n" } }, "bfdcdc39eeb04946a97cd9562372bc04": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "c17c106402064e86b728cf51a20e3f93": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "c1cc842e2c754beaaa916279adfd386c": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_341331d0bde34d979b78eac118690943", "value": "Leo-01 is a lion.\nLeo-01 eats Sophie-01.\nSophie-01 is a giraffe.\nSophie-01 eats Leaf-01.\nMary-01 is a tree.\nLeaf-01 is a leaf and is-part-of Branch-02.\nBranch-02 is a branch and is-part-of Branch-01.\nBranch-01 is a branch and is-part-of Mary-01.\nBranch-03 is a branch." } }, "c1e34aeacb524c99a1c32e8cc8c9413a": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "c2922a5ec6e44f0fa89f7993482f603c": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "c31ba60b449d4f539dcbf422e55d8814": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "c370339aafb24857915cb2b2d2ab7980": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "c3b494913b23455082fcb63616b57646": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_075ca95d3ff64fdf8542061a5f907fdc", "IPY_MODEL_69339d07f80c4b42a0ca64e1e93f2940" ], "layout": "IPY_MODEL_ce2e3b8fdc324d989c349ad9a641ca61" } }, "c4809ee837e84bbba2bd1dc44a5cdc69": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "c7c7716cd5034ec7a3235e29964fa9d9": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_ec97c88651864e3ca37f08c0e7906155" } }, "c7fe458b7f814978a92e90b0b53c295c": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "cb714303465343599e7daddd09b77893": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "cbb49564f07a44bdb9bdcc6dc6b14644": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "ccf001a3c0464bea8feb875691549208": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_c31ba60b449d4f539dcbf422e55d8814" } }, "cdb640c492eb40d986642b7b0cf89db1": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_cbb49564f07a44bdb9bdcc6dc6b14644" } }, "ce2e3b8fdc324d989c349ad9a641ca61": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "d54e4a0ee8f44ecbb8074b55bef1cad5": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "d57f6e38f7004528888075094f48a5c5": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_b00a9fbb66484f79acacbff96553201c", "IPY_MODEL_52741d97d4f0452e8bffb57f6e008c08", "IPY_MODEL_ccf001a3c0464bea8feb875691549208" ], "layout": "IPY_MODEL_31026f2d97cf487b9752010b7a2245d8" } }, "d66764a2add44d99aa42b9900ec34efa": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_8299fafb9989402e9259aa0b848881e2", "IPY_MODEL_2ee595c943434b3288bd80d13a391707" ], "layout": "IPY_MODEL_260916fd573c4e118c8d6fdeed6c1d4d" } }, "d6c24200739c486fa395a2d6f15f4c29": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_b6c1708eb8ab423fbc381678654dde18", "IPY_MODEL_91212d33087f4872ab96d1d2adac582a" ], "layout": "IPY_MODEL_d786ada62a30448b8081a35a036fbf3d" } }, "d786ada62a30448b8081a35a036fbf3d": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "d810833472c54ff1a38f821261445bdb": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "d8f23781ffc74fb797fe78016d7b58e4": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "d9c2b88b505b48a4b6c2c57cd93f7776": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "d9cb1abd82e245e987efdff390856b01": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "da880ed987404926b0e5eef7d96d2e5a": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "daee7295113f4ab588ec50dacbc01003": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "db4059a12cb34224934499d5b329f6c6": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "db6bc8d6d0d54e2484718dee857e30e1": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "dc33986a1b82473796f0e43e7b8960d2": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_490fd126b35c4016a45f2265268f5ef0", "IPY_MODEL_27ad5c8d383e457a9920d5cb29f64853" ], "layout": "IPY_MODEL_f2d6e500963644e1ace9c82d3d895f68" } }, "dd75b77ca52a43a9868c62b289a4e4e1": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_db6bc8d6d0d54e2484718dee857e30e1" } }, "df07f4cbd3574e08868b7543bb5cb15a": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "df45bd0d614e4f8dbc1d38058dc993e7": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "df59fa382ea5464699bf03b221ac05e1": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "e16c8b4b7cb8450f87b6a37e7c8d2caf": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "e18af0cea30b4af3a6cf1099f055219c": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_e1d32be0fd784adb901538ecaea234af", "IPY_MODEL_e5a39ffce83d482a9bb07ef05f75f0c2" ], "layout": "IPY_MODEL_ba703b23f64a4ac9bc68ac9552802303" } }, "e1d32be0fd784adb901538ecaea234af": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_a23f3db72e844fd38d5d05b950980e06", "value": "Every-single-thing that is a plant and-or is a plant-part is a herb.\nNo herb is an animal.\n\nEvery carnivore eats nothing-but animals.\nEvery lion eats nothing-but herbivores.\n\nEvery herbivore eats nothing-but herb.\n\nAnything either is a carnivore, is a herbivore or is an omnivore or-something-else.\nAnything either is a branch, is a leaf or is a twig or-something-else.\n\nNo giraffe is a lion.\nEvery palm-tree is not a tree.\n" } }, "e26922aed1324c3cb824535d8f1eba7a": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_08a658b923de47b7add2517b8353da1a" } }, "e278e56780d1428c826f7d861d407183": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "e445e8ca520940b8aa5759ab19428243": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "e47665c42c1e462aa1fcecac0816fa09": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_1d27dea574734e228e02e981579f0e48", "IPY_MODEL_3e2147d0702741bbb1963715683ba2ff" ], "layout": "IPY_MODEL_704fa12b89334f67b30097d1c39534c9" } }, "e4e340eba47048e182a7727741432dc5": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_a83fc2b5087147fda70ef91ec71c9636", "IPY_MODEL_0529b65148e34a3f84378822394dbb23" ], "layout": "IPY_MODEL_46b6bc391f7d47cb95796e1c5effa3cb" } }, "e5a39ffce83d482a9bb07ef05f75f0c2": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_efae18bdcab04718b11c37b244e41d0f" } }, "e65e067cfdfa4e8eabc514464b7e6d79": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_4d859fd0df3e4b1099684200a4f5ea13", "value": "Every carnivorous-plant must eat an animal.\nEvery carnivor must eat an animal.\nEvery omnivore must eat a plant.\nEvery branch must be-part-of a tree.\nEvery plant-part must be-part-of a plant.\n\nComment: 'Role equivalence and inverted roles'.\nX has-part Y if-and-only-if Y is-part-of X.\nX eats Y if-and-only-if Y is-eaten-by X.\n\nComment: 'Role subsumptions'.\nIf X is-part-of Y then X is-part-of Y.\nIf X has-part something that has-part Y then X has-part Y.\n\nComment: 'Complex role subsumptions'.\nIf X is-part-of something that is-part-of Y then X is-part-of Y.\n" } }, "e736dda042e74aac96c321bed782241e": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_34a127ddc9f3425d855562e734e8582e" } }, "e87806312d1343ce83bb2bb743ba1b80": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "e95aa04a0587464ba4602b494ff2b472": { "model_module": "ontoedit", "model_module_version": "1.1.0", "model_name": "OntoeditModel", "state": { "_model_module_version": "1.1.0", "_view_module_version": "", "layout": "IPY_MODEL_a6d8f4abcb594d9c8c0df1d48de451e1", "value": "Leo-01 is a lion.\nLeo-01 eats Sophie-01.\nSophie-01 is a giraffe.\nLeo-01 eats Mary-01.\nMary-01 is a palm-tree.\n" } }, "ea50e21fc54b4d97b922faa6337bdfe7": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "eb60a5c7b71b42e096ca618392a788d4": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "eb7f5c7b600f433dbe22183849e5f30b": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "ec97c88651864e3ca37f08c0e7906155": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "edb2db2d34c248249a938a00c0f98a07": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "edfd7c1406474ef8b6008fa01533a9f1": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_d9cb1abd82e245e987efdff390856b01" } }, "ee2dd188cbe048cd98f09aa693d4aae4": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_bb14a3aef3864813a7002faff9fc6b16", "IPY_MODEL_ef6cc581fc9c483fa9f40c0299bb4106" ], "layout": "IPY_MODEL_88e3f3eb628649cbaa595601364bada4" } }, "ef6cc581fc9c483fa9f40c0299bb4106": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_1786ad24fa9d463aa9ad86dcacd6b971" } }, "efae18bdcab04718b11c37b244e41d0f": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "efcb094f11be4d558dfe247c7614db95": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "f0f6655efb3d4a67824e88522b093252": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_687f88667abb40929c0d1ac2acbc9281", "IPY_MODEL_2401f4a10a284f68920b1eb13a0ef3f1" ], "layout": "IPY_MODEL_08826d1d1e2d4efa9364b5d2bafa3c93" } }, "f1b9951724734f07987cdd4aef154383": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.4.0", "model_name": "VBoxModel", "state": { "children": [ "IPY_MODEL_acf1c5a99f7843fd8fe8da70d0aac47f", "IPY_MODEL_8b52933a93d84df1bc039f960cacf560" ], "layout": "IPY_MODEL_e445e8ca520940b8aa5759ab19428243" } }, "f1e6f830e9f945efb4e325a458679887": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "f2d6e500963644e1ace9c82d3d895f68": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "f2dac51fb55347f2bf9f5f781b9e4558": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": {} }, "f4ea8cdd8b5c4157a727af4af9d67cb3": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "f7410d5947704d05b636e488c607ec0e": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100%", "width": "90%" } }, "f79246661c1941fb8047812a618edbea": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "100px" } }, "f7e95e3d43544ddfb6c69338a006cace": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } }, "f81355e7f2a34681bf8ca14e71dbf938": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_edb2db2d34c248249a938a00c0f98a07" } }, "f81dc3d2747142f9ac59bd2ccb85dc67": { "model_module": "@jupyter-widgets/output", "model_module_version": "1.0.0", "model_name": "OutputModel", "state": { "layout": "IPY_MODEL_5f92d7eda9e4489591fce827af8d659b" } }, "f9ced4f7f8f84c4cbed97f862b03e763": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.1.0", "model_name": "LayoutModel", "state": { "height": "300px" } } }, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 2 }