SlideShare a Scribd company logo
1 of 32
Download to read offline
An Introduction to AceWiki
Tobias Kuhn
Department of Informatics
University of Zurich
Second Workshop on Controlled Natural Language
14 September 2010
Marettimo (Italy)
This Talk
Introduction to the AceWiki system
• Practical introduction on how to use AceWiki
• Discussion of some theoretical and technical aspects
• Running “Hands on” Exercise
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 2 / 32
AceWiki Attributes
natural Uses Attempto Controlled English (ACE)
semantic Integrates an OWL reasoner
wiki Collaborative web-based knowledge management
modern Dynamic Ajax-based web interface
alpha Relatively stable, but some important features are still
missing
free Open Source under LGPL
popular about 20 web site clicks and 1.6 downloads per day
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 3 / 32
AceWiki Interface
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 4 / 32
Running Exercise
1. Getting Started
Visit the following AceWiki instance:
http://192.168.1.172:9077/webapps/acewikicnl2010/
http://attempto.ifi.uzh.ch/webapps/acewikicnl2010/
This wiki will be used during this talk for the exercises. It is still
empty but we will step by step fill it with content.
Running Exercise
2. Individuals
Add some individuals to the wiki, for example:
• Italy
• CNL 2010
Add an individual that represents you:
• Tobias Kuhn
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 5 / 32
Design Principles
CNL user interfaces in general ...
1 ... should follow the natural spirit of CNLs.
“Sentence” instead of “axiom”, “noun phrase” instead of
“concept description”, etc.
2 ... should solve the writability problem of CNLs.
Error messages and suggestions, predictive editor, or language
generation features
3 ... should not let users confuse CNL with natural language.
Users can learn — consciously or unconsciously — the
differences between the CNL and the full natural language.
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 6 / 32
Predictive Editor
A predictive editor shows all possible continuations of a partial text.
Challenges:
• Potentially high number of possible words
• Sentence creation should be quick (not much more than one
mouse click per word)
• Novice versus experienced users
• Creation of new words
• Suitable grammar notation → my talk tomorrow
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 7 / 32
Running Exercise
3. Concepts
Add some concepts to the wiki, for example:
• person
• country
• workshop
• researcher
Connect the existing individuals to the concepts, for example:
• Italy is a country.
Only write statements that are true in the real world.
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 8 / 32
Articles, Words and Statements
Articles ⇔ Words. Every word has exactly one article and every
article is assigned to exactly one word.
• Proper names (Individuals)
• Nouns (Concepts)
• Of -constructs (Relations)
• Transitive Verbs (Relations)
• Transitive Adjectives (Relations)
Statements. Every article consist of zero or more ordered
statements.
• Declarative ACE Sentences (Assertions)
• ACE Questions (Queries)
• Comments (Informal Notes)
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 9 / 32
Running Exercise
4. Hierarchies
Structure the existing concepts in hierarchies, for example:
• Every researcher is a person.
• Every person is an entity.
• Every workshop is an event.
Define new concepts when necessary.
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 10 / 32
ACE and Full Natural Language in AceWiki
ACE — Full English
• ACE sentences are the main content → normal font
• Full English in labels, explanations, comments, etc. → italics
• Users can immediately see what is ACE and what not
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 11 / 32
Pattern-based Suggestions
• Can some frequent errors be automatically recognized?
• Two small user experiments showed that the most common error
is using “a” instead of “every” at the sentence beginning.
• Simple correction:
A student studies at a university.
→
Every student studies at a university.
• AceWiki can now automatically detect and correct such errors:
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 12 / 32
Running Exercise
5. Relations
Define some relations in the form of of -constructs, verbs, and
transitive adjectives, for example:
• member of
• organizes
• located in
Write some simple statements using such relations, for example:
• Mike Rosner organizes CNL 2010.
• Italy is located in Europe.
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 13 / 32
Reasoning in AceWiki
• Seamless reasoner integration
• Reasoning happens silently in the background
• ACE sentences are translated into OWL
• OWL Reasoners:
• HermiT (internal, default)
• Pellet (internal, not part of the AceWiki package)
• OWLlink (connection to external reasoners): Pellet, FaCT++,
RacerPro, ...
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 14 / 32
Questions
• Questions in ACE are automatically answered
• Simple wh-questions with exactly one wh-word:
Which cities are located in a country that borders Switzerland?
• Correspond to class descriptions in OWL
• The answers are the individuals that belong to the given class
description
• More expressive query languages like SPARQL could be
supported in the future
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 15 / 32
Running Exercise
6. Questions
Add some questions to the wiki and see what happens, for example:
• Who is a person?
• What is CNL 2010?
• Who is a member of a group that is located in Italy?
• Which workshops are organized by Mike Rosner?
• Who organizes more than 2 events?
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 16 / 32
Expressivity Layers
• Trade-off: Expressivity/Complexity versus Reasoning Costs
• Layered Approach:
1 Simple statements, immediate feedback from the reasoner
2 More complex statements, feedback every x hours or upon
explicit request
3 Complex statements, no reasoning within the wiki
4 Very complex statements, formal but too complex to do reasoning
• Parameters for the bounds of layers 1–3
• Expressivity layers in AceWiki:
1 OWL Full or an OWL profile (OWL EL, OWL QL or OWL RL)
2 (Layer 2 is not yet available)
3 OWL + SWRL
4 First-order Logic
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 17 / 32
Running Exercise
7. Complex Statements
Add some complex statements to AceWiki, using negation, “if ...
then”, number restrictions, etc:
• No person is an object.
• Every city is located in exactly 1 country.
• Everything that organizes something is a person.
• If a country X borders a country Y then Y borders X.
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 18 / 32
Unique Name Assumption
• Individuals with different names are implicitly considered
distinct:
• Italy is not Switzerland.
• Italy is not Germany.
• ...
• Neither applied in standard logic nor in natural language:
• “Bobby”, “Bob Dylan”, “Robert Zimmerman”
• “Burma”, “Birma”, “Myanmar”
• Closed systems like AceWiki should force users to use the same
name for the same thing
• Exception: Abbreviations
• “the United Nations” = “the UN”
• “the Second Workshop on Controlled Natural Language 2010” =
“CNL 2010”
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 19 / 32
Consistency
• Consistency is very important: required for all other reasoning
tasks
• Inconsistencies are probable in a collaborative wiki approach
• Consistency assurance in AceWiki:
• New sentences are added only after a consistency check
• Error message is generated when consistency is violated
• → AceWiki ontology is always consistent
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 20 / 32
Running Exercise
8. Inconsistency
Try to add a statement that is in contradiction with the existing
knowledge, for example:
• No country is located in Europe.
• Mike Rosner does not organize an event.
See what happens. Remove this statement afterwards.
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 21 / 32
Architecture
AceWiki uses a number of third-party libraries and systems:
AceWiki
GUI
Echo Web
Framework
Ontology Manager
OWL API
OWLlink HermiT
Reasoner
Java APE
Binding
JPL
Java Servlet Container
(e.g. Jetty, Apache Tomcat)
ACE Parser
(APE)
SWI Prolog
External
Reasoner:
FaCT++,
Pellet,
RacerPro,
etc.
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 22 / 32
Storage, Import and Export
Persistent Storage:
• 1 directory per ontology
• 1 file per article
Server-side Import:
• AceWiki data format
Client-side Export:
• ACE text & lexicon
• OWL
• CSV tables
• AceWiki data format
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 23 / 32
Running Exercise
9. Export
Download the content onto your computer using the export feature
of AceWiki. Use for example one of the following formats:
• ACE Text
• Statement Table
• AceWiki data file
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 24 / 32
Evaluation
• Two small usability experiments with earlier versions of AceWiki
• Altogether 26 untrained participants
• Task: Collaborative creation of a knowledge base
• Results:
• 78%-81% of the sentences were correct and sensible
• 61%-70% of them were complex (containing negation,
implication, disjunction or number restriction)
• Creation of a correct sentence every 5–6 minutes
• Definition of a new word every 5–7 minutes
• → Even untrained users can effectively use AceWiki
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 25 / 32
Missing Features
Some crucial features are still missing:
• User management
• History / Undo Facility
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 26 / 32
Running Exercise
10. Feedback
If you like to give feedback about your impression of AceWiki, please
do so by writing a comment in the article with your name.
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 27 / 32
ACE Editor
• Web-based editor for ACE texts
• Not a finished tool, but a basis for domain-specific tools
• Uses the same predictive editor as AceWiki, but with a larger
subset of ACE
• http://attempto.ifi.uzh.ch/webapps/aceeditor/
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 28 / 32
ACE Editor Interface
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 29 / 32
Conclusion
• Ontology access, management and reasoning via CNL
• Such interfaces are easy to use even for untrained users
• Hide the complexity of formal logic and reasoning
• Predictive editor approach works
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 30 / 32
Future
Some ideas for the future of AceWiki:
• Fully fledged and highly customizable AceWiki
• Grammar editor: create, extend and modify CNL grammars
(syntax and semantics)
• General reasoner interface: plug in your own reasoner, rule
engine, theorem prover, data base management system, ...
• → Useful in industry (?)
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 31 / 32
Thank you for your attention!
Questions & Discussion
Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 32 / 32

More Related Content

Viewers also liked

A Multilingual Semantic Wiki based on Attempto Controlled English and Grammat...
A Multilingual Semantic Wiki based on Attempto Controlled English and Grammat...A Multilingual Semantic Wiki based on Attempto Controlled English and Grammat...
A Multilingual Semantic Wiki based on Attempto Controlled English and Grammat...
Tobias Kuhn
 
A Decentralized Network for Publishing Linked Data — Nanopublications, Trusty...
A Decentralized Network for Publishing Linked Data — Nanopublications, Trusty...A Decentralized Network for Publishing Linked Data — Nanopublications, Trusty...
A Decentralized Network for Publishing Linked Data — Nanopublications, Trusty...
Tobias Kuhn
 

Viewers also liked (11)

AceWiki
AceWikiAceWiki
AceWiki
 
A Decentralized Approach to Dissemination, Retrieval, and Archiving of Data
A Decentralized Approach to Dissemination, Retrieval, and Archiving of DataA Decentralized Approach to Dissemination, Retrieval, and Archiving of Data
A Decentralized Approach to Dissemination, Retrieval, and Archiving of Data
 
nanopub-java: A Java Library for Nanopublications
nanopub-java: A Java Library for Nanopublicationsnanopub-java: A Java Library for Nanopublications
nanopub-java: A Java Library for Nanopublications
 
2013 Report on AngeI Investing Activity in Canada: Accelerating the Asset Class
2013 Report on AngeI Investing Activity in Canada: Accelerating the Asset Class2013 Report on AngeI Investing Activity in Canada: Accelerating the Asset Class
2013 Report on AngeI Investing Activity in Canada: Accelerating the Asset Class
 
Underspecified Scientific Claims in Nanopublications
Underspecified Scientific Claims in NanopublicationsUnderspecified Scientific Claims in Nanopublications
Underspecified Scientific Claims in Nanopublications
 
Data Publishing and Post-Publication Reviews
Data Publishing and Post-Publication ReviewsData Publishing and Post-Publication Reviews
Data Publishing and Post-Publication Reviews
 
Trusty URIs: Verifiable, Immutable, and Permanent Digital Artifacts for Linke...
Trusty URIs: Verifiable, Immutable, and Permanent Digital Artifacts for Linke...Trusty URIs: Verifiable, Immutable, and Permanent Digital Artifacts for Linke...
Trusty URIs: Verifiable, Immutable, and Permanent Digital Artifacts for Linke...
 
A Multilingual Semantic Wiki based on Attempto Controlled English and Grammat...
A Multilingual Semantic Wiki based on Attempto Controlled English and Grammat...A Multilingual Semantic Wiki based on Attempto Controlled English and Grammat...
A Multilingual Semantic Wiki based on Attempto Controlled English and Grammat...
 
AceWiki: Controlled English in a Semantic Wiki
AceWiki: Controlled English in a Semantic WikiAceWiki: Controlled English in a Semantic Wiki
AceWiki: Controlled English in a Semantic Wiki
 
A Decentralized Network for Publishing Linked Data — Nanopublications, Trusty...
A Decentralized Network for Publishing Linked Data — Nanopublications, Trusty...A Decentralized Network for Publishing Linked Data — Nanopublications, Trusty...
A Decentralized Network for Publishing Linked Data — Nanopublications, Trusty...
 
Broadening the Scope of Nanopublications
Broadening the Scope of NanopublicationsBroadening the Scope of Nanopublications
Broadening the Scope of Nanopublications
 

Similar to An Introduction to AceWiki

Evolution of minds and languages: What evolved first and develops first in ch...
Evolution of minds and languages: What evolved first and develops first in ch...Evolution of minds and languages: What evolved first and develops first in ch...
Evolution of minds and languages: What evolved first and develops first in ch...
Aaron Sloman
 
Collaborative Ontology Building Project
Collaborative Ontology Building Project  Collaborative Ontology Building Project
Collaborative Ontology Building Project
Jie Bao
 
CNI fall 2009 enhanced publications john_doove-SURFfoundation
CNI fall 2009 enhanced publications john_doove-SURFfoundationCNI fall 2009 enhanced publications john_doove-SURFfoundation
CNI fall 2009 enhanced publications john_doove-SURFfoundation
John Doove
 

Similar to An Introduction to AceWiki (20)

Forty-five Years of the OTA
Forty-five Years of the OTAForty-five Years of the OTA
Forty-five Years of the OTA
 
Evolution of minds and languages: What evolved first and develops first in ch...
Evolution of minds and languages: What evolved first and develops first in ch...Evolution of minds and languages: What evolved first and develops first in ch...
Evolution of minds and languages: What evolved first and develops first in ch...
 
Delhi University OER for ELT Collections Building
Delhi University OER for ELT Collections BuildingDelhi University OER for ELT Collections Building
Delhi University OER for ELT Collections Building
 
General presentation of the LiquidPub project
General presentation of the LiquidPub projectGeneral presentation of the LiquidPub project
General presentation of the LiquidPub project
 
What you Can Make Out of Linked Data
What you Can Make Out of Linked DataWhat you Can Make Out of Linked Data
What you Can Make Out of Linked Data
 
FinalReport
FinalReportFinalReport
FinalReport
 
LILAC2010
LILAC2010LILAC2010
LILAC2010
 
From Open Access to Open Science: from the Viewpoint of a Scholarly Publisher
From Open Access to Open Science: from the Viewpoint of a Scholarly PublisherFrom Open Access to Open Science: from the Viewpoint of a Scholarly Publisher
From Open Access to Open Science: from the Viewpoint of a Scholarly Publisher
 
Introduction to digital libraries - definitions, examples, concepts and trend...
Introduction to digital libraries - definitions, examples, concepts and trend...Introduction to digital libraries - definitions, examples, concepts and trend...
Introduction to digital libraries - definitions, examples, concepts and trend...
 
Collaborative Ontology Building Project
Collaborative Ontology Building Project  Collaborative Ontology Building Project
Collaborative Ontology Building Project
 
Applying Software Development Paradigms to Open Educational Resources
Applying Software Development Paradigms to Open Educational ResourcesApplying Software Development Paradigms to Open Educational Resources
Applying Software Development Paradigms to Open Educational Resources
 
Teaching Experiences
Teaching ExperiencesTeaching Experiences
Teaching Experiences
 
GIS Day 2015: Geoinformatics, Open Source and Videos - a library perspective
GIS Day 2015: Geoinformatics, Open Source and Videos - a library perspectiveGIS Day 2015: Geoinformatics, Open Source and Videos - a library perspective
GIS Day 2015: Geoinformatics, Open Source and Videos - a library perspective
 
CNI fall 2009 enhanced publications john_doove-SURFfoundation
CNI fall 2009 enhanced publications john_doove-SURFfoundationCNI fall 2009 enhanced publications john_doove-SURFfoundation
CNI fall 2009 enhanced publications john_doove-SURFfoundation
 
How Controlled English can Improve Semantic Wikis
How Controlled English can Improve Semantic WikisHow Controlled English can Improve Semantic Wikis
How Controlled English can Improve Semantic Wikis
 
Openstack Summit Boston 2017: Participating in translation makes you an inte...
Openstack Summit Boston 2017:  Participating in translation makes you an inte...Openstack Summit Boston 2017:  Participating in translation makes you an inte...
Openstack Summit Boston 2017: Participating in translation makes you an inte...
 
MACE Presentation
MACE PresentationMACE Presentation
MACE Presentation
 
Semtech web-protege-tutorial
Semtech web-protege-tutorialSemtech web-protege-tutorial
Semtech web-protege-tutorial
 
User initiative for improving OOXML integration in LibreOffice/OpenOffice.org
User initiative for improving OOXML integration in LibreOffice/OpenOffice.orgUser initiative for improving OOXML integration in LibreOffice/OpenOffice.org
User initiative for improving OOXML integration in LibreOffice/OpenOffice.org
 
Facs online tutorial
Facs online tutorialFacs online tutorial
Facs online tutorial
 

More from Tobias Kuhn

Science Bots: A Model for the Future of Scientific Computation?
Science Bots: A Model for the Future of Scientific Computation?Science Bots: A Model for the Future of Scientific Computation?
Science Bots: A Model for the Future of Scientific Computation?
Tobias Kuhn
 
Citation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific LiteratureCitation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific Literature
Tobias Kuhn
 
Citation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific LiteratureCitation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific Literature
Tobias Kuhn
 
Automatische Übersetzung in einem multilingualen, semantischen Wiki
Automatische Übersetzung in einem multilingualen, semantischen WikiAutomatische Übersetzung in einem multilingualen, semantischen Wiki
Automatische Übersetzung in einem multilingualen, semantischen Wiki
Tobias Kuhn
 

More from Tobias Kuhn (17)

Nanopublications and Decentralized Publishing
Nanopublications and Decentralized PublishingNanopublications and Decentralized Publishing
Nanopublications and Decentralized Publishing
 
Linked Data Publishing with Nanopublications
Linked Data Publishing with NanopublicationsLinked Data Publishing with Nanopublications
Linked Data Publishing with Nanopublications
 
Genuine semantic publishing
Genuine semantic publishingGenuine semantic publishing
Genuine semantic publishing
 
The Controlled Natural Language of Randall Munroe’s Thing Explainer
The Controlled Natural Language of Randall Munroe’s Thing Explainer The Controlled Natural Language of Randall Munroe’s Thing Explainer
The Controlled Natural Language of Randall Munroe’s Thing Explainer
 
Publishing without Publishers: a Decentralized Approach to Dissemination, Ret...
Publishing without Publishers: a Decentralized Approach to Dissemination, Ret...Publishing without Publishers: a Decentralized Approach to Dissemination, Ret...
Publishing without Publishers: a Decentralized Approach to Dissemination, Ret...
 
Semantic Publishing and Nanopublications
Semantic Publishing and NanopublicationsSemantic Publishing and Nanopublications
Semantic Publishing and Nanopublications
 
Scientific Data Publishing
Scientific Data PublishingScientific Data Publishing
Scientific Data Publishing
 
Science Bots: A Model for the Future of Scientific Computation?
Science Bots: A Model for the Future of Scientific Computation?Science Bots: A Model for the Future of Scientific Computation?
Science Bots: A Model for the Future of Scientific Computation?
 
Semantic Publishing with Nanopublications
Semantic Publishing with Nanopublications Semantic Publishing with Nanopublications
Semantic Publishing with Nanopublications
 
Nanopubs
NanopubsNanopubs
Nanopubs
 
Citation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific LiteratureCitation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific Literature
 
Citation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific LiteratureCitation Graph Analysis to Identify Memes in Scientific Literature
Citation Graph Analysis to Identify Memes in Scientific Literature
 
Automatische Übersetzung in einem multilingualen, semantischen Wiki
Automatische Übersetzung in einem multilingualen, semantischen WikiAutomatische Übersetzung in einem multilingualen, semantischen Wiki
Automatische Übersetzung in einem multilingualen, semantischen Wiki
 
Improving Text Mining with Controlled Natural Language: A Case Study for Prot...
Improving Text Mining with Controlled Natural Language: A Case Study for Prot...Improving Text Mining with Controlled Natural Language: A Case Study for Prot...
Improving Text Mining with Controlled Natural Language: A Case Study for Prot...
 
AceRules: Executing Rules in Controlled Natural Language
AceRules: Executing Rules in Controlled Natural LanguageAceRules: Executing Rules in Controlled Natural Language
AceRules: Executing Rules in Controlled Natural Language
 
Wissensrepräsentation in kontrolliertem Englisch
Wissensrepräsentation in kontrolliertem EnglischWissensrepräsentation in kontrolliertem Englisch
Wissensrepräsentation in kontrolliertem Englisch
 
Codeco: A Grammar Notation for Controlled Natural Language in Predictive Editors
Codeco: A Grammar Notation for Controlled Natural Language in Predictive EditorsCodeco: A Grammar Notation for Controlled Natural Language in Predictive Editors
Codeco: A Grammar Notation for Controlled Natural Language in Predictive Editors
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 

An Introduction to AceWiki

  • 1. An Introduction to AceWiki Tobias Kuhn Department of Informatics University of Zurich Second Workshop on Controlled Natural Language 14 September 2010 Marettimo (Italy)
  • 2. This Talk Introduction to the AceWiki system • Practical introduction on how to use AceWiki • Discussion of some theoretical and technical aspects • Running “Hands on” Exercise Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 2 / 32
  • 3. AceWiki Attributes natural Uses Attempto Controlled English (ACE) semantic Integrates an OWL reasoner wiki Collaborative web-based knowledge management modern Dynamic Ajax-based web interface alpha Relatively stable, but some important features are still missing free Open Source under LGPL popular about 20 web site clicks and 1.6 downloads per day Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 3 / 32
  • 4. AceWiki Interface Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 4 / 32
  • 5. Running Exercise 1. Getting Started Visit the following AceWiki instance: http://192.168.1.172:9077/webapps/acewikicnl2010/ http://attempto.ifi.uzh.ch/webapps/acewikicnl2010/ This wiki will be used during this talk for the exercises. It is still empty but we will step by step fill it with content. Running Exercise 2. Individuals Add some individuals to the wiki, for example: • Italy • CNL 2010 Add an individual that represents you: • Tobias Kuhn Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 5 / 32
  • 6. Design Principles CNL user interfaces in general ... 1 ... should follow the natural spirit of CNLs. “Sentence” instead of “axiom”, “noun phrase” instead of “concept description”, etc. 2 ... should solve the writability problem of CNLs. Error messages and suggestions, predictive editor, or language generation features 3 ... should not let users confuse CNL with natural language. Users can learn — consciously or unconsciously — the differences between the CNL and the full natural language. Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 6 / 32
  • 7. Predictive Editor A predictive editor shows all possible continuations of a partial text. Challenges: • Potentially high number of possible words • Sentence creation should be quick (not much more than one mouse click per word) • Novice versus experienced users • Creation of new words • Suitable grammar notation → my talk tomorrow Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 7 / 32
  • 8. Running Exercise 3. Concepts Add some concepts to the wiki, for example: • person • country • workshop • researcher Connect the existing individuals to the concepts, for example: • Italy is a country. Only write statements that are true in the real world. Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 8 / 32
  • 9. Articles, Words and Statements Articles ⇔ Words. Every word has exactly one article and every article is assigned to exactly one word. • Proper names (Individuals) • Nouns (Concepts) • Of -constructs (Relations) • Transitive Verbs (Relations) • Transitive Adjectives (Relations) Statements. Every article consist of zero or more ordered statements. • Declarative ACE Sentences (Assertions) • ACE Questions (Queries) • Comments (Informal Notes) Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 9 / 32
  • 10. Running Exercise 4. Hierarchies Structure the existing concepts in hierarchies, for example: • Every researcher is a person. • Every person is an entity. • Every workshop is an event. Define new concepts when necessary. Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 10 / 32
  • 11. ACE and Full Natural Language in AceWiki ACE — Full English • ACE sentences are the main content → normal font • Full English in labels, explanations, comments, etc. → italics • Users can immediately see what is ACE and what not Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 11 / 32
  • 12. Pattern-based Suggestions • Can some frequent errors be automatically recognized? • Two small user experiments showed that the most common error is using “a” instead of “every” at the sentence beginning. • Simple correction: A student studies at a university. → Every student studies at a university. • AceWiki can now automatically detect and correct such errors: Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 12 / 32
  • 13. Running Exercise 5. Relations Define some relations in the form of of -constructs, verbs, and transitive adjectives, for example: • member of • organizes • located in Write some simple statements using such relations, for example: • Mike Rosner organizes CNL 2010. • Italy is located in Europe. Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 13 / 32
  • 14. Reasoning in AceWiki • Seamless reasoner integration • Reasoning happens silently in the background • ACE sentences are translated into OWL • OWL Reasoners: • HermiT (internal, default) • Pellet (internal, not part of the AceWiki package) • OWLlink (connection to external reasoners): Pellet, FaCT++, RacerPro, ... Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 14 / 32
  • 15. Questions • Questions in ACE are automatically answered • Simple wh-questions with exactly one wh-word: Which cities are located in a country that borders Switzerland? • Correspond to class descriptions in OWL • The answers are the individuals that belong to the given class description • More expressive query languages like SPARQL could be supported in the future Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 15 / 32
  • 16. Running Exercise 6. Questions Add some questions to the wiki and see what happens, for example: • Who is a person? • What is CNL 2010? • Who is a member of a group that is located in Italy? • Which workshops are organized by Mike Rosner? • Who organizes more than 2 events? Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 16 / 32
  • 17. Expressivity Layers • Trade-off: Expressivity/Complexity versus Reasoning Costs • Layered Approach: 1 Simple statements, immediate feedback from the reasoner 2 More complex statements, feedback every x hours or upon explicit request 3 Complex statements, no reasoning within the wiki 4 Very complex statements, formal but too complex to do reasoning • Parameters for the bounds of layers 1–3 • Expressivity layers in AceWiki: 1 OWL Full or an OWL profile (OWL EL, OWL QL or OWL RL) 2 (Layer 2 is not yet available) 3 OWL + SWRL 4 First-order Logic Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 17 / 32
  • 18. Running Exercise 7. Complex Statements Add some complex statements to AceWiki, using negation, “if ... then”, number restrictions, etc: • No person is an object. • Every city is located in exactly 1 country. • Everything that organizes something is a person. • If a country X borders a country Y then Y borders X. Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 18 / 32
  • 19. Unique Name Assumption • Individuals with different names are implicitly considered distinct: • Italy is not Switzerland. • Italy is not Germany. • ... • Neither applied in standard logic nor in natural language: • “Bobby”, “Bob Dylan”, “Robert Zimmerman” • “Burma”, “Birma”, “Myanmar” • Closed systems like AceWiki should force users to use the same name for the same thing • Exception: Abbreviations • “the United Nations” = “the UN” • “the Second Workshop on Controlled Natural Language 2010” = “CNL 2010” Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 19 / 32
  • 20. Consistency • Consistency is very important: required for all other reasoning tasks • Inconsistencies are probable in a collaborative wiki approach • Consistency assurance in AceWiki: • New sentences are added only after a consistency check • Error message is generated when consistency is violated • → AceWiki ontology is always consistent Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 20 / 32
  • 21. Running Exercise 8. Inconsistency Try to add a statement that is in contradiction with the existing knowledge, for example: • No country is located in Europe. • Mike Rosner does not organize an event. See what happens. Remove this statement afterwards. Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 21 / 32
  • 22. Architecture AceWiki uses a number of third-party libraries and systems: AceWiki GUI Echo Web Framework Ontology Manager OWL API OWLlink HermiT Reasoner Java APE Binding JPL Java Servlet Container (e.g. Jetty, Apache Tomcat) ACE Parser (APE) SWI Prolog External Reasoner: FaCT++, Pellet, RacerPro, etc. Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 22 / 32
  • 23. Storage, Import and Export Persistent Storage: • 1 directory per ontology • 1 file per article Server-side Import: • AceWiki data format Client-side Export: • ACE text & lexicon • OWL • CSV tables • AceWiki data format Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 23 / 32
  • 24. Running Exercise 9. Export Download the content onto your computer using the export feature of AceWiki. Use for example one of the following formats: • ACE Text • Statement Table • AceWiki data file Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 24 / 32
  • 25. Evaluation • Two small usability experiments with earlier versions of AceWiki • Altogether 26 untrained participants • Task: Collaborative creation of a knowledge base • Results: • 78%-81% of the sentences were correct and sensible • 61%-70% of them were complex (containing negation, implication, disjunction or number restriction) • Creation of a correct sentence every 5–6 minutes • Definition of a new word every 5–7 minutes • → Even untrained users can effectively use AceWiki Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 25 / 32
  • 26. Missing Features Some crucial features are still missing: • User management • History / Undo Facility Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 26 / 32
  • 27. Running Exercise 10. Feedback If you like to give feedback about your impression of AceWiki, please do so by writing a comment in the article with your name. Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 27 / 32
  • 28. ACE Editor • Web-based editor for ACE texts • Not a finished tool, but a basis for domain-specific tools • Uses the same predictive editor as AceWiki, but with a larger subset of ACE • http://attempto.ifi.uzh.ch/webapps/aceeditor/ Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 28 / 32
  • 29. ACE Editor Interface Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 29 / 32
  • 30. Conclusion • Ontology access, management and reasoning via CNL • Such interfaces are easy to use even for untrained users • Hide the complexity of formal logic and reasoning • Predictive editor approach works Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 30 / 32
  • 31. Future Some ideas for the future of AceWiki: • Fully fledged and highly customizable AceWiki • Grammar editor: create, extend and modify CNL grammars (syntax and semantics) • General reasoner interface: plug in your own reasoner, rule engine, theorem prover, data base management system, ... • → Useful in industry (?) Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 31 / 32
  • 32. Thank you for your attention! Questions & Discussion Tobias Kuhn, University of Zurich An Introduction to AceWiki CNL 2010, 14 September, Marettimo 32 / 32