SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Downloaden Sie, um offline zu lesen
Knowledge
                            Representation
Semantic CMS Community
                            and Reasoning with
                            Apache Stanbol




 Project Review
                                        Andrea Nuzzolese
 Meeting
 Luxemburg, 14-03-2013        andrea.nuzzolese@istc.cnr.it
                                       STLab, ISTC-CNR
   Co-funded by the
                                                    Italy
   European Union

       www.iks-project.eu
What does KR and Reasoning layer
   provide to Sanbol?


›  Services used to define and manipulate semantic data
  models in the CMS
  ›  i.e., Ontology Network Manager component


›  Services  able to retrieve additional semantic information
  about content
  ›  i.e., Reaoners and Rules components




     www.iks-project.eu                Copyright IKS Consortium   2
www.iks-project.eu   Copyright IKS Consortium   3
Ontology Network Manager: motivations



›  To  enable a more scalable reasoning by
   ›  activating only parts of the knowledge that is really needed
       by the application
   ›  limiting the scope of specific reasoning tasks.


›  To  distinguish between core and volatile knowledge
   ›  core knowledge describes the semantic domain of the
       CMS
   ›  volatile knowledge can be any knowledge coming from
       external services, or extracted from contents etc.


         www.iks-project.eu            Copyright IKS Consortium       4
Ontology Network Manager



›  The
      Ontology Network Manager provides a controlled
  environment for managing ontology networks

›  An
     ontology network is “a collection of ontologies related
  together through a variety of different relationships such as
  mapping, modularization, and versioning.” [NeOn D1.1.5
  Haase et. al]

›  The
      ONM provides API and REST services for constructing
  ontology networks and maintaining connectivity at runtime


         www.iks-project.eu           Copyright IKS Consortium    5
www.iks-project.eu   Copyright IKS Consortium   6
Ontology networks in Stanbol


›  The ONM relies on two types of artifacts for constructing
  ontology networks
  ›  Scope:
        ›  a shared artifacts within the CMS for collecting all the
            persistent knowledge.
        ›  can be seen as a "logical realm" for the ontologies that
            encompass a certain CMS-related set of concepts
              e.g., "User", "Event", "Content”, "Community”,

  ›  Session      :
          ›  a shared artifact for volatile knowledge
                e.g., knowledge extracted on-the-fly from content

     www.iks-project.eu                  Copyright IKS Consortium      7
Scopes and sessions in th
Ontology Network Manager




 www.iks-project.eu   Copyright IKS Consortium   8
Ontology Network Manager
   REST services
›  /ontonet/ontology/{scopeName}
  ›  - {scopeName} list (GET), delete (DELETE) all registered
      and/or active ontology scopes
  ›  + {scopeName} get or activate, delete or deactivate, create
      (PUT) and update (POST) the ontology of the scope
      identified by {scopeName}

›  ontonet/session/{id}
  ›  -{id} get, delete all registered ontology sessions
  ›  + {id} get, delete, create (PUT) and update (POST) the
      ontology session identified by {id}


      www.iks-project.eu             Copyright IKS Consortium       9
Stanbol Rules



›  Stanbol
          Rules is the component that supports the
  construction and the management of inference rules within
  Stanbol

›  Stanbol
          Rules provide an additional layer and a syntax for
  expressing business logics by means of axioms

›  The
      management of rules is performed through HTTP REST
  services




     www.iks-project.eu              Copyright IKS Consortium   10
Rules and Recipes



›  Rules    are organized into a logic container called recipe

›  A recipe  identifies a set of rules that share the same
  business logic
  ›  e.g., integrity check of data, Search Engine Optimizaion


›  Rules    within a recipe are interpreted and executed as a
  whole

›  A rule   can be shared by different recipes


      www.iks-project.eu                  Copyright IKS Consortium   11
Stanbol Rules: some usage scenario

›  Integritycheck from data fusion
   ›  the CMS administrator can define integrity checks for data
       fetched from heterogeneous and external sources in order
       to prevent unwanted formats or inconsistent data

›  Vocabulary  harmonization
   ›  Rules can be used for the alignment of external data
       representation to internal one (managed via the Ontology
       Network Manager)

›  DL  reasoning
   ›  Rules can be used as axioms for inferring new knowledge
       by DL reasoners
         www.iks-project.eu           Copyright IKS Consortium      12
Stanbol Rules adapters
›  Stanbol
         Rules are expressed by using the Stanbol Rule
  language

›  By
     need, rules are converted at runtime to the format
  required by a concrete rule engine

›  By  default, a list of rule adapters is provided
  ›  i.e., SWRL for DL reasoning through OWL API, Jena
      Rules, Clerezza SPARQL Constructs, pure SPARQL
      Constructs

›  Adapterscan be easily extended by implementing the
  provided interface

         www.iks-project.eu          Copyright IKS Consortium   13
The rule language



›  The   rule syntax synoptic is

                          ruleName[body -> head]

›  The rule name uniquely identifies a rule
›  The body and head consist of a set of conjunctive atoms




     www.iks-project.eu                  Copyright IKS Consortium   14
Core rule atoms



›  Core atoms are
  ›  Class assertion
        ›  i.e., is(classPredicate, argument)
  ›  Individual assertion
        ›  i.e., has(properyPredicate, arg1, arg2)
  ›  Data value assertion
        ›  i.e., values(properyPredicate, arg1, arg2)




     www.iks-project.eu                 Copyright IKS Consortium   15
Additional rule atoms



›  Comparison
  ›  e.g.,   same(arg1, arg2), greaterThan(arg1, arg2)
›  String manipulation
    ›  e.g., concat(arg1, arg2), lowercase(arg)
›  Arithmetical atoms
    ›  e.g., sum(arg1, arg2), mult(arg1, arg2)
›  Production atoms
    ›  e.g., newIRI(arg1, arg2), newLiteral(arg1, arg2)




     www.iks-project.eu                Copyright IKS Consortium   16
A rule example



prefix myont = <http://www.foo.org/myont.owl#> .
uncleRule[
      is(myont:Human, ?x) .
      has(myont:hasParent, ?x, ?z) .
      has(myont:hasSibling, ?z, ?y)
           ->
      has(myont:hasUncle, ?x, ?y)
]




     www.iks-project.eu             Copyright IKS Consortium   17
Rules REST services




›  /rule
   ›  get,   create (POST), and delete rules into the rule store

›  /recipe
   ›  get,create (PUT), add rules into (POST), and delete a
      recipe




      www.iks-project.eu                  Copyright IKS Consortium   18
Stanbol Reasoners




›  Common       REST wrapper around available reasoners

›  Provides    a default reasoner based on Jena

›  Other
        reasoners can be plugged through the OWLLink
  protocol




     www.iks-project.eu                 Copyright IKS Consortium   19
Reasoning services

›  Currently  implemented services are
  ›  consistency checking
  ›  classification
  ›  enrichment
  ›  refactoring


›  Inputs   for reasoning are ontology networks and rules recipes

›  Supported       different reasoners and reasoning configuration in
  parallel



      www.iks-project.eu                    Copyright IKS Consortium     20
Dealing with big data reasoning




›  Reasoning
            with big data is performed by means of jobs
  through HTTP services

›  A job   is associated to an ID

›  The   status of a job can be queried through REST API




      www.iks-project.eu               Copyright IKS Consortium   21
Reasoners REST services

›  Services for classification, consistency checking and
  enrichment
  ›  /reasoners/rdfs: based on RDFS
  ›  /reasoners/owlmini: by default based on Jena OWLMini
      reasoner.
  ›  /reasoners/owl: by default based on Jena OWL reasoner.


›  Refactoring  services
  ›  /refactor/apply


›  Managing    reasoning jobs
  ›  /jobs/{jid}

     www.iks-project.eu             Copyright IKS Consortium   22
About adoption

›  Netlab
  ›  Adoptionof the Ontology Manager and Rules for storing
     ontologies and enabling reasoning

›  InSideOut10
  ›  WordLiftplug-in for WordPress based on Rules for
     enabling schema.org compliant content

›  Acuity
         Unlimited
  ›  KR&R enables reasoning services to assist Fedora
      Commons repository managers acquire and manage
      semantic metadata about their contents

      www.iks-project.eu            Copyright IKS Consortium   23
DEMO




www.iks-project.eu          Copyright IKS Consortium   24
Thank you




www.iks-project.eu          Copyright IKS Consortium   25

Weitere ähnliche Inhalte

Ähnlich wie Knowledge Representation and Reasoning with Apache Stanbol

Adcom2006 Full 6
Adcom2006 Full 6Adcom2006 Full 6
Adcom2006 Full 6umavanth
 
AWS Community Day Bangkok 2019 - How AWS Parallel Cluster can accelerate high...
AWS Community Day Bangkok 2019 - How AWS Parallel Cluster can accelerate high...AWS Community Day Bangkok 2019 - How AWS Parallel Cluster can accelerate high...
AWS Community Day Bangkok 2019 - How AWS Parallel Cluster can accelerate high...AWS User Group - Thailand
 
Introduction Openstack
Introduction OpenstackIntroduction Openstack
Introduction OpenstackRanjith Kumar
 
OpenStack - An Overview
OpenStack - An OverviewOpenStack - An Overview
OpenStack - An Overviewgraziol
 
Using the IBM XIV Storage System in OpenStack Cloud Environments
Using the IBM XIV Storage System in OpenStack Cloud Environments Using the IBM XIV Storage System in OpenStack Cloud Environments
Using the IBM XIV Storage System in OpenStack Cloud Environments IBM India Smarter Computing
 
Architectures and buildings
Architectures and buildingsArchitectures and buildings
Architectures and buildingsARCFIRE ICT
 
Mesos and Kubernetes ecosystem overview
Mesos and Kubernetes ecosystem overviewMesos and Kubernetes ecosystem overview
Mesos and Kubernetes ecosystem overviewKrishna-Kumar
 
Collabnix Online Webinar: Integrated Log Analytics & Monitoring using Docker ...
Collabnix Online Webinar: Integrated Log Analytics & Monitoring using Docker ...Collabnix Online Webinar: Integrated Log Analytics & Monitoring using Docker ...
Collabnix Online Webinar: Integrated Log Analytics & Monitoring using Docker ...Ajeet Singh Raina
 
OpenShift In a Nutshell - Episode 05 - Core Concepts Part I
OpenShift In a Nutshell - Episode 05 - Core Concepts Part IOpenShift In a Nutshell - Episode 05 - Core Concepts Part I
OpenShift In a Nutshell - Episode 05 - Core Concepts Part IBehnam Loghmani
 
Lecture 7: Semantic Technologies and Interoperability
Lecture 7: Semantic Technologies and InteroperabilityLecture 7: Semantic Technologies and Interoperability
Lecture 7: Semantic Technologies and InteroperabilityPayamBarnaghi
 
Working with kubernetes
Working with kubernetesWorking with kubernetes
Working with kubernetesNagaraj Shenoy
 
Understanding the container landscape and it associated projects
Understanding the container landscape and it associated projectsUnderstanding the container landscape and it associated projects
Understanding the container landscape and it associated projectsAnthony Chow
 
IMS LODE and the ASPECT project
IMS LODE and the ASPECT projectIMS LODE and the ASPECT project
IMS LODE and the ASPECT projectDavid Massart
 
Self contained systems - In practice
Self contained systems - In practiceSelf contained systems - In practice
Self contained systems - In practicePer Ökvist
 
Open stack
Open stackOpen stack
Open stacksvm
 
2014 IEEE JAVA DATA MINING PROJECT Xs path navigation on xml schemas made easy
2014 IEEE JAVA DATA MINING PROJECT Xs path navigation on xml schemas made easy2014 IEEE JAVA DATA MINING PROJECT Xs path navigation on xml schemas made easy
2014 IEEE JAVA DATA MINING PROJECT Xs path navigation on xml schemas made easyIEEEMEMTECHSTUDENTSPROJECTS
 
IEEE 2014 JAVA DATA MINING PROJECTS Xs path navigation on xml schemas made easy
IEEE 2014 JAVA DATA MINING PROJECTS Xs path navigation on xml schemas made easyIEEE 2014 JAVA DATA MINING PROJECTS Xs path navigation on xml schemas made easy
IEEE 2014 JAVA DATA MINING PROJECTS Xs path navigation on xml schemas made easyIEEEFINALYEARSTUDENTPROJECTS
 
Portlets & jsr 168
Portlets & jsr 168Portlets & jsr 168
Portlets & jsr 168grsrkumar
 
Lecture the semantic_web_part_1
Lecture the semantic_web_part_1Lecture the semantic_web_part_1
Lecture the semantic_web_part_1IKS - Project
 

Ähnlich wie Knowledge Representation and Reasoning with Apache Stanbol (20)

Adcom2006 Full 6
Adcom2006 Full 6Adcom2006 Full 6
Adcom2006 Full 6
 
AWS Community Day Bangkok 2019 - How AWS Parallel Cluster can accelerate high...
AWS Community Day Bangkok 2019 - How AWS Parallel Cluster can accelerate high...AWS Community Day Bangkok 2019 - How AWS Parallel Cluster can accelerate high...
AWS Community Day Bangkok 2019 - How AWS Parallel Cluster can accelerate high...
 
Introduction Openstack
Introduction OpenstackIntroduction Openstack
Introduction Openstack
 
OpenStack - An Overview
OpenStack - An OverviewOpenStack - An Overview
OpenStack - An Overview
 
Using the IBM XIV Storage System in OpenStack Cloud Environments
Using the IBM XIV Storage System in OpenStack Cloud Environments Using the IBM XIV Storage System in OpenStack Cloud Environments
Using the IBM XIV Storage System in OpenStack Cloud Environments
 
Architectures and buildings
Architectures and buildingsArchitectures and buildings
Architectures and buildings
 
Mesos and Kubernetes ecosystem overview
Mesos and Kubernetes ecosystem overviewMesos and Kubernetes ecosystem overview
Mesos and Kubernetes ecosystem overview
 
Collabnix Online Webinar: Integrated Log Analytics & Monitoring using Docker ...
Collabnix Online Webinar: Integrated Log Analytics & Monitoring using Docker ...Collabnix Online Webinar: Integrated Log Analytics & Monitoring using Docker ...
Collabnix Online Webinar: Integrated Log Analytics & Monitoring using Docker ...
 
OpenShift In a Nutshell - Episode 05 - Core Concepts Part I
OpenShift In a Nutshell - Episode 05 - Core Concepts Part IOpenShift In a Nutshell - Episode 05 - Core Concepts Part I
OpenShift In a Nutshell - Episode 05 - Core Concepts Part I
 
Lecture 7: Semantic Technologies and Interoperability
Lecture 7: Semantic Technologies and InteroperabilityLecture 7: Semantic Technologies and Interoperability
Lecture 7: Semantic Technologies and Interoperability
 
Working with kubernetes
Working with kubernetesWorking with kubernetes
Working with kubernetes
 
Understanding the container landscape and it associated projects
Understanding the container landscape and it associated projectsUnderstanding the container landscape and it associated projects
Understanding the container landscape and it associated projects
 
IMS LODE and the ASPECT project
IMS LODE and the ASPECT projectIMS LODE and the ASPECT project
IMS LODE and the ASPECT project
 
Self contained systems - In practice
Self contained systems - In practiceSelf contained systems - In practice
Self contained systems - In practice
 
Open stack
Open stackOpen stack
Open stack
 
2014 IEEE JAVA DATA MINING PROJECT Xs path navigation on xml schemas made easy
2014 IEEE JAVA DATA MINING PROJECT Xs path navigation on xml schemas made easy2014 IEEE JAVA DATA MINING PROJECT Xs path navigation on xml schemas made easy
2014 IEEE JAVA DATA MINING PROJECT Xs path navigation on xml schemas made easy
 
IEEE 2014 JAVA DATA MINING PROJECTS Xs path navigation on xml schemas made easy
IEEE 2014 JAVA DATA MINING PROJECTS Xs path navigation on xml schemas made easyIEEE 2014 JAVA DATA MINING PROJECTS Xs path navigation on xml schemas made easy
IEEE 2014 JAVA DATA MINING PROJECTS Xs path navigation on xml schemas made easy
 
Portlets & jsr 168
Portlets & jsr 168Portlets & jsr 168
Portlets & jsr 168
 
Lecture the semantic_web_part_1
Lecture the semantic_web_part_1Lecture the semantic_web_part_1
Lecture the semantic_web_part_1
 
Unit-3.pptx
Unit-3.pptxUnit-3.pptx
Unit-3.pptx
 

Mehr von Andrea Nuzzolese

Aemoo: Linked Data Exploration based on Knowledge Patterns
Aemoo: Linked Data Exploration based on Knowledge PatternsAemoo: Linked Data Exploration based on Knowledge Patterns
Aemoo: Linked Data Exploration based on Knowledge PatternsAndrea Nuzzolese
 
Conference Linked Data: the ScholarlyData project
Conference Linked Data: the ScholarlyData projectConference Linked Data: the ScholarlyData project
Conference Linked Data: the ScholarlyData projectAndrea Nuzzolese
 
Semantic Technologies in ST&DL
Semantic Technologies in ST&DLSemantic Technologies in ST&DL
Semantic Technologies in ST&DLAndrea Nuzzolese
 
Evaluating citation functions in CiTO: cognitive issues
Evaluating citation functions in CiTO: cognitive issuesEvaluating citation functions in CiTO: cognitive issues
Evaluating citation functions in CiTO: cognitive issuesAndrea Nuzzolese
 
Knowledge Patterns for the Web: extraction, transformation, and reuse
Knowledge Patterns for the Web: extraction, transformation, and reuseKnowledge Patterns for the Web: extraction, transformation, and reuse
Knowledge Patterns for the Web: extraction, transformation, and reuseAndrea Nuzzolese
 
Towards the automatic identification of the nature of citations
Towards the automatic identification of the nature of citationsTowards the automatic identification of the nature of citations
Towards the automatic identification of the nature of citationsAndrea Nuzzolese
 
Type inference through the analysis of Wikipedia links
Type inference through the analysis of Wikipedia linksType inference through the analysis of Wikipedia links
Type inference through the analysis of Wikipedia linksAndrea Nuzzolese
 
Towards an Empirical Semantic Web Science: Knowledge Pattern Extraction and U...
Towards an Empirical Semantic Web Science: Knowledge Pattern Extraction and U...Towards an Empirical Semantic Web Science: Knowledge Pattern Extraction and U...
Towards an Empirical Semantic Web Science: Knowledge Pattern Extraction and U...Andrea Nuzzolese
 
Gathering Lexical Linked Data and Knowledge Patterns from FrameNet
Gathering Lexical Linked Data and Knowledge Patterns from FrameNetGathering Lexical Linked Data and Knowledge Patterns from FrameNet
Gathering Lexical Linked Data and Knowledge Patterns from FrameNetAndrea Nuzzolese
 
Aemoo: exploratory search based on knowledge patterns over the Semantic Web
Aemoo:  exploratory search based on knowledge patterns over the Semantic WebAemoo:  exploratory search based on knowledge patterns over the Semantic Web
Aemoo: exploratory search based on knowledge patterns over the Semantic WebAndrea Nuzzolese
 

Mehr von Andrea Nuzzolese (13)

Aemoo: Linked Data Exploration based on Knowledge Patterns
Aemoo: Linked Data Exploration based on Knowledge PatternsAemoo: Linked Data Exploration based on Knowledge Patterns
Aemoo: Linked Data Exploration based on Knowledge Patterns
 
Conference Linked Data: the ScholarlyData project
Conference Linked Data: the ScholarlyData projectConference Linked Data: the ScholarlyData project
Conference Linked Data: the ScholarlyData project
 
Semantic Technologies in ST&DL
Semantic Technologies in ST&DLSemantic Technologies in ST&DL
Semantic Technologies in ST&DL
 
Oke
OkeOke
Oke
 
Sheldon challenge
Sheldon challengeSheldon challenge
Sheldon challenge
 
Evaluating citation functions in CiTO: cognitive issues
Evaluating citation functions in CiTO: cognitive issuesEvaluating citation functions in CiTO: cognitive issues
Evaluating citation functions in CiTO: cognitive issues
 
Knowledge Patterns for the Web: extraction, transformation, and reuse
Knowledge Patterns for the Web: extraction, transformation, and reuseKnowledge Patterns for the Web: extraction, transformation, and reuse
Knowledge Patterns for the Web: extraction, transformation, and reuse
 
Loditaly2014 new
Loditaly2014 newLoditaly2014 new
Loditaly2014 new
 
Towards the automatic identification of the nature of citations
Towards the automatic identification of the nature of citationsTowards the automatic identification of the nature of citations
Towards the automatic identification of the nature of citations
 
Type inference through the analysis of Wikipedia links
Type inference through the analysis of Wikipedia linksType inference through the analysis of Wikipedia links
Type inference through the analysis of Wikipedia links
 
Towards an Empirical Semantic Web Science: Knowledge Pattern Extraction and U...
Towards an Empirical Semantic Web Science: Knowledge Pattern Extraction and U...Towards an Empirical Semantic Web Science: Knowledge Pattern Extraction and U...
Towards an Empirical Semantic Web Science: Knowledge Pattern Extraction and U...
 
Gathering Lexical Linked Data and Knowledge Patterns from FrameNet
Gathering Lexical Linked Data and Knowledge Patterns from FrameNetGathering Lexical Linked Data and Knowledge Patterns from FrameNet
Gathering Lexical Linked Data and Knowledge Patterns from FrameNet
 
Aemoo: exploratory search based on knowledge patterns over the Semantic Web
Aemoo:  exploratory search based on knowledge patterns over the Semantic WebAemoo:  exploratory search based on knowledge patterns over the Semantic Web
Aemoo: exploratory search based on knowledge patterns over the Semantic Web
 

Knowledge Representation and Reasoning with Apache Stanbol

  • 1. Knowledge Representation Semantic CMS Community and Reasoning with Apache Stanbol Project Review Andrea Nuzzolese Meeting Luxemburg, 14-03-2013 andrea.nuzzolese@istc.cnr.it STLab, ISTC-CNR Co-funded by the Italy European Union www.iks-project.eu
  • 2. What does KR and Reasoning layer provide to Sanbol? ›  Services used to define and manipulate semantic data models in the CMS ›  i.e., Ontology Network Manager component ›  Services able to retrieve additional semantic information about content ›  i.e., Reaoners and Rules components www.iks-project.eu Copyright IKS Consortium 2
  • 3. www.iks-project.eu Copyright IKS Consortium 3
  • 4. Ontology Network Manager: motivations ›  To enable a more scalable reasoning by ›  activating only parts of the knowledge that is really needed by the application ›  limiting the scope of specific reasoning tasks. ›  To distinguish between core and volatile knowledge ›  core knowledge describes the semantic domain of the CMS ›  volatile knowledge can be any knowledge coming from external services, or extracted from contents etc. www.iks-project.eu Copyright IKS Consortium 4
  • 5. Ontology Network Manager ›  The Ontology Network Manager provides a controlled environment for managing ontology networks ›  An ontology network is “a collection of ontologies related together through a variety of different relationships such as mapping, modularization, and versioning.” [NeOn D1.1.5 Haase et. al] ›  The ONM provides API and REST services for constructing ontology networks and maintaining connectivity at runtime www.iks-project.eu Copyright IKS Consortium 5
  • 6. www.iks-project.eu Copyright IKS Consortium 6
  • 7. Ontology networks in Stanbol ›  The ONM relies on two types of artifacts for constructing ontology networks ›  Scope: ›  a shared artifacts within the CMS for collecting all the persistent knowledge. ›  can be seen as a "logical realm" for the ontologies that encompass a certain CMS-related set of concepts e.g., "User", "Event", "Content”, "Community”, ›  Session : ›  a shared artifact for volatile knowledge e.g., knowledge extracted on-the-fly from content www.iks-project.eu Copyright IKS Consortium 7
  • 8. Scopes and sessions in th Ontology Network Manager www.iks-project.eu Copyright IKS Consortium 8
  • 9. Ontology Network Manager REST services ›  /ontonet/ontology/{scopeName} ›  - {scopeName} list (GET), delete (DELETE) all registered and/or active ontology scopes ›  + {scopeName} get or activate, delete or deactivate, create (PUT) and update (POST) the ontology of the scope identified by {scopeName} ›  ontonet/session/{id} ›  -{id} get, delete all registered ontology sessions ›  + {id} get, delete, create (PUT) and update (POST) the ontology session identified by {id} www.iks-project.eu Copyright IKS Consortium 9
  • 10. Stanbol Rules ›  Stanbol Rules is the component that supports the construction and the management of inference rules within Stanbol ›  Stanbol Rules provide an additional layer and a syntax for expressing business logics by means of axioms ›  The management of rules is performed through HTTP REST services www.iks-project.eu Copyright IKS Consortium 10
  • 11. Rules and Recipes ›  Rules are organized into a logic container called recipe ›  A recipe identifies a set of rules that share the same business logic ›  e.g., integrity check of data, Search Engine Optimizaion ›  Rules within a recipe are interpreted and executed as a whole ›  A rule can be shared by different recipes www.iks-project.eu Copyright IKS Consortium 11
  • 12. Stanbol Rules: some usage scenario ›  Integritycheck from data fusion ›  the CMS administrator can define integrity checks for data fetched from heterogeneous and external sources in order to prevent unwanted formats or inconsistent data ›  Vocabulary harmonization ›  Rules can be used for the alignment of external data representation to internal one (managed via the Ontology Network Manager) ›  DL reasoning ›  Rules can be used as axioms for inferring new knowledge by DL reasoners www.iks-project.eu Copyright IKS Consortium 12
  • 13. Stanbol Rules adapters ›  Stanbol Rules are expressed by using the Stanbol Rule language ›  By need, rules are converted at runtime to the format required by a concrete rule engine ›  By default, a list of rule adapters is provided ›  i.e., SWRL for DL reasoning through OWL API, Jena Rules, Clerezza SPARQL Constructs, pure SPARQL Constructs ›  Adapterscan be easily extended by implementing the provided interface www.iks-project.eu Copyright IKS Consortium 13
  • 14. The rule language ›  The rule syntax synoptic is ruleName[body -> head] ›  The rule name uniquely identifies a rule ›  The body and head consist of a set of conjunctive atoms www.iks-project.eu Copyright IKS Consortium 14
  • 15. Core rule atoms ›  Core atoms are ›  Class assertion ›  i.e., is(classPredicate, argument) ›  Individual assertion ›  i.e., has(properyPredicate, arg1, arg2) ›  Data value assertion ›  i.e., values(properyPredicate, arg1, arg2) www.iks-project.eu Copyright IKS Consortium 15
  • 16. Additional rule atoms ›  Comparison ›  e.g., same(arg1, arg2), greaterThan(arg1, arg2) ›  String manipulation ›  e.g., concat(arg1, arg2), lowercase(arg) ›  Arithmetical atoms ›  e.g., sum(arg1, arg2), mult(arg1, arg2) ›  Production atoms ›  e.g., newIRI(arg1, arg2), newLiteral(arg1, arg2) www.iks-project.eu Copyright IKS Consortium 16
  • 17. A rule example prefix myont = <http://www.foo.org/myont.owl#> . uncleRule[ is(myont:Human, ?x) . has(myont:hasParent, ?x, ?z) . has(myont:hasSibling, ?z, ?y) -> has(myont:hasUncle, ?x, ?y) ] www.iks-project.eu Copyright IKS Consortium 17
  • 18. Rules REST services ›  /rule ›  get, create (POST), and delete rules into the rule store ›  /recipe ›  get,create (PUT), add rules into (POST), and delete a recipe www.iks-project.eu Copyright IKS Consortium 18
  • 19. Stanbol Reasoners ›  Common REST wrapper around available reasoners ›  Provides a default reasoner based on Jena ›  Other reasoners can be plugged through the OWLLink protocol www.iks-project.eu Copyright IKS Consortium 19
  • 20. Reasoning services ›  Currently implemented services are ›  consistency checking ›  classification ›  enrichment ›  refactoring ›  Inputs for reasoning are ontology networks and rules recipes ›  Supported different reasoners and reasoning configuration in parallel www.iks-project.eu Copyright IKS Consortium 20
  • 21. Dealing with big data reasoning ›  Reasoning with big data is performed by means of jobs through HTTP services ›  A job is associated to an ID ›  The status of a job can be queried through REST API www.iks-project.eu Copyright IKS Consortium 21
  • 22. Reasoners REST services ›  Services for classification, consistency checking and enrichment ›  /reasoners/rdfs: based on RDFS ›  /reasoners/owlmini: by default based on Jena OWLMini reasoner. ›  /reasoners/owl: by default based on Jena OWL reasoner. ›  Refactoring services ›  /refactor/apply ›  Managing reasoning jobs ›  /jobs/{jid} www.iks-project.eu Copyright IKS Consortium 22
  • 23. About adoption ›  Netlab ›  Adoptionof the Ontology Manager and Rules for storing ontologies and enabling reasoning ›  InSideOut10 ›  WordLiftplug-in for WordPress based on Rules for enabling schema.org compliant content ›  Acuity Unlimited ›  KR&R enables reasoning services to assist Fedora Commons repository managers acquire and manage semantic metadata about their contents www.iks-project.eu Copyright IKS Consortium 23
  • 24. DEMO www.iks-project.eu Copyright IKS Consortium 24
  • 25. Thank you www.iks-project.eu Copyright IKS Consortium 25