You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by al...@apache.org on 2011/12/14 17:58:13 UTC

svn commit: r1214336 - in /incubator/stanbol/trunk/explanation/core/src: main/resources/model/interaction/patterns/cms.owl test/resources/ontologies/abox/ test/resources/ontologies/abox/cms.owl

Author: alexdma
Date: Wed Dec 14 16:58:13 2011
New Revision: 1214336

URL: http://svn.apache.org/viewvc?rev=1214336&view=rev
Log:
More interaction patterns and first stub of test ontology. (STANBOL-347)

Added:
    incubator/stanbol/trunk/explanation/core/src/test/resources/ontologies/abox/
    incubator/stanbol/trunk/explanation/core/src/test/resources/ontologies/abox/cms.owl
Modified:
    incubator/stanbol/trunk/explanation/core/src/main/resources/model/interaction/patterns/cms.owl

Modified: incubator/stanbol/trunk/explanation/core/src/main/resources/model/interaction/patterns/cms.owl
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/explanation/core/src/main/resources/model/interaction/patterns/cms.owl?rev=1214336&r1=1214335&r2=1214336&view=diff
==============================================================================
--- incubator/stanbol/trunk/explanation/core/src/main/resources/model/interaction/patterns/cms.owl (original)
+++ incubator/stanbol/trunk/explanation/core/src/main/resources/model/interaction/patterns/cms.owl Wed Dec 14 16:58:13 2011
@@ -6,6 +6,7 @@
     <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
     <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
     <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
+    <!ENTITY DUL "http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#" >
     <!ENTITY interaction "http://stanbol.apache.org/ontologies/models/interaction#" >
 ]>
 
@@ -13,11 +14,13 @@
 <rdf:RDF xmlns="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#"
      xml:base="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl"
      xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+     xmlns:DUL="http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#"
      xmlns:owl="http://www.w3.org/2002/07/owl#"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      xmlns:interaction="http://stanbol.apache.org/ontologies/models/interaction#">
     <owl:Ontology rdf:about="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl">
+        <rdfs:comment xml:lang="en">Interaction Pattern models for Content Management.</rdfs:comment>
         <owl:imports rdf:resource="http://stanbol.apache.org/ontologies/models/interaction/patterns/interpretation.owl"/>
     </owl:Ontology>
     
@@ -61,6 +64,12 @@
     <owl:Class rdf:about="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#ContentRecommendation">
         <rdfs:label xml:lang="en">ContentRecommendation</rdfs:label>
         <rdfs:subClassOf rdf:resource="&interaction;InteractionPattern"/>
+        <rdfs:subClassOf>
+            <owl:Restriction>
+                <owl:onProperty rdf:resource="&interaction;implements"/>
+                <owl:someValuesFrom rdf:resource="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#InformationAugmentation"/>
+            </owl:Restriction>
+        </rdfs:subClassOf>
     </owl:Class>
     
 
@@ -109,13 +118,125 @@
     
 
 
+    <!-- http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#InformationAugmentation -->
+
+    <owl:Class rdf:about="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#InformationAugmentation">
+        <rdfs:label xml:lang="en">InformationAugmentation</rdfs:label>
+        <rdfs:subClassOf rdf:resource="&interaction;Discourse"/>
+        <rdfs:subClassOf>
+            <owl:Restriction>
+                <owl:onProperty rdf:resource="&DUL;hasComponent"/>
+                <owl:someValuesFrom rdf:resource="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#Query"/>
+            </owl:Restriction>
+        </rdfs:subClassOf>
+        <rdfs:subClassOf>
+            <owl:Restriction>
+                <owl:onProperty rdf:resource="&DUL;hasComponent"/>
+                <owl:someValuesFrom rdf:resource="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#ProvisionOfResults"/>
+            </owl:Restriction>
+        </rdfs:subClassOf>
+    </owl:Class>
+    
+
+
+    <!-- http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#InternalQuery -->
+
+    <owl:Class rdf:about="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#InternalQuery">
+        <rdfs:label xml:lang="en">Internal query</rdfs:label>
+        <rdfs:subClassOf rdf:resource="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#Query"/>
+        <rdfs:subClassOf rdf:resource="&interaction;SystemAction"/>
+        <rdfs:comment xml:lang="en">A query issued by the interactive system to itself.
+
+Note that a rule is required to express this equality on issuers.</rdfs:comment>
+    </owl:Class>
+    
+
+
     <!-- http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#ProvisionOfResults -->
 
     <owl:Class rdf:about="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#ProvisionOfResults">
         <rdfs:label xml:lang="en">Provision of results</rdfs:label>
         <rdfs:subClassOf rdf:resource="&interaction;SystemAction"/>
+        <rdfs:subClassOf>
+            <owl:Restriction>
+                <owl:onProperty rdf:resource="&interaction;respondsTo"/>
+                <owl:someValuesFrom rdf:resource="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#Query"/>
+            </owl:Restriction>
+        </rdfs:subClassOf>
         <rdfs:comment xml:lang="en">System displays the results of a query, regardless whether it was a search, browsing, SQL query or autosuggestion.</rdfs:comment>
     </owl:Class>
+    
+
+
+    <!-- http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#Query -->
+
+    <owl:Class rdf:about="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#Query">
+        <rdfs:label xml:lang="en">Query</rdfs:label>
+        <rdfs:subClassOf rdf:resource="&interaction;Utterance"/>
+        <rdfs:subClassOf>
+            <owl:Restriction>
+                <owl:onProperty rdf:resource="&interaction;issuedBy"/>
+                <owl:onClass>
+                    <owl:Class>
+                        <owl:unionOf rdf:parseType="Collection">
+                            <rdf:Description rdf:about="&interaction;System"/>
+                            <rdf:Description rdf:about="&interaction;User"/>
+                            <owl:Class>
+                                <owl:oneOf rdf:parseType="Collection">
+                                    <rdf:Description rdf:about="&interaction;System"/>
+                                </owl:oneOf>
+                            </owl:Class>
+                            <owl:Class>
+                                <owl:oneOf rdf:parseType="Collection">
+                                    <rdf:Description rdf:about="&interaction;User"/>
+                                </owl:oneOf>
+                            </owl:Class>
+                        </owl:unionOf>
+                    </owl:Class>
+                </owl:onClass>
+                <owl:qualifiedCardinality rdf:datatype="&xsd;nonNegativeInteger">1</owl:qualifiedCardinality>
+            </owl:Restriction>
+        </rdfs:subClassOf>
+        <rdfs:comment xml:lang="en">An act of information retrieval</rdfs:comment>
+    </owl:Class>
+    
+
+
+    <!-- http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#UserQuery -->
+
+    <owl:Class rdf:about="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#UserQuery">
+        <rdfs:label xml:lang="en">UserQuery</rdfs:label>
+        <rdfs:subClassOf rdf:resource="http://stanbol.apache.org/ontologies/interaction/patterns/cms.owl#Query"/>
+        <rdfs:subClassOf rdf:resource="&interaction;UserAction"/>
+    </owl:Class>
+    
+
+
+    <!-- http://stanbol.apache.org/ontologies/models/interaction#System -->
+
+    <rdf:Description rdf:about="&interaction;System">
+        <owl:disjointWith rdf:resource="&interaction;User"/>
+    </rdf:Description>
+    
+
+
+    <!-- http://stanbol.apache.org/ontologies/models/interaction#SystemAction -->
+
+    <rdf:Description rdf:about="&interaction;SystemAction">
+        <owl:disjointWith rdf:resource="&interaction;UserAction"/>
+    </rdf:Description>
+    
+
+
+    <!-- http://stanbol.apache.org/ontologies/models/interaction#User -->
+
+    <rdf:Description rdf:about="&interaction;User"/>
+    
+
+
+    <!-- http://stanbol.apache.org/ontologies/models/interaction#UserAction -->
+
+    <rdf:Description rdf:about="&interaction;UserAction"/>
 </rdf:RDF>
 
 

Added: incubator/stanbol/trunk/explanation/core/src/test/resources/ontologies/abox/cms.owl
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/explanation/core/src/test/resources/ontologies/abox/cms.owl?rev=1214336&view=auto
==============================================================================
--- incubator/stanbol/trunk/explanation/core/src/test/resources/ontologies/abox/cms.owl (added)
+++ incubator/stanbol/trunk/explanation/core/src/test/resources/ontologies/abox/cms.owl Wed Dec 14 16:58:13 2011
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+
+
+<!DOCTYPE rdf:RDF [
+    <!ENTITY owl "http://www.w3.org/2002/07/owl#" >
+    <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
+    <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
+    <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
+]>
+
+
+<rdf:RDF xmlns="http://stanbol.apache.org/ontologies/test/interaction/patterns/cms.owl#"
+     xml:base="http://stanbol.apache.org/ontologies/test/interaction/patterns/cms.owl"
+     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+     xmlns:owl="http://www.w3.org/2002/07/owl#"
+     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
+     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+    <owl:Ontology rdf:about="http://stanbol.apache.org/ontologies/test/interaction/patterns/cms.owl">
+        <rdfs:comment xml:lang="en">Instances used for testing CMS-related interaction patterns.</rdfs:comment>
+    </owl:Ontology>
+    
+
+
+    <!-- 
+    ///////////////////////////////////////////////////////////////////////////////////////
+    //
+    // Annotation properties
+    //
+    ///////////////////////////////////////////////////////////////////////////////////////
+     -->
+
+</rdf:RDF>
+
+
+
+<!-- Generated by the OWL API (version 3.2.3.1824) http://owlapi.sourceforge.net -->
+