You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by ci...@apache.org on 2011/03/30 15:44:01 UTC

svn commit: r1086954 [3/16] - in /incubator/stanbol/trunk/kres/ontologymanager/store: ./ api/ api/src/ api/src/main/ api/src/main/java/ api/src/main/java/org/ api/src/main/java/org/apache/ api/src/main/java/org/apache/stanbol/ api/src/main/java/org/apa...

Added: incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/PropertyAssertions.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/PropertyAssertions.java?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/PropertyAssertions.java (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/PropertyAssertions.java Wed Mar 30 13:43:53 2011
@@ -0,0 +1,178 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.4-b02-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.05.13 at 09:50:16 AM EEST 
+//
+
+package org.apache.stanbol.ontologymanager.store.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for anonymous complex type.
+ * 
+ * <p>
+ * The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="PropertyAssertion" maxOccurs="unbounded" minOccurs="0">
+ *           &lt;complexType>
+ *             &lt;complexContent>
+ *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 &lt;sequence>
+ *                   &lt;element ref="{model.rest.persistence.iks.srdc.com.tr}PropertyMetaInformation"/>
+ *                   &lt;choice maxOccurs="unbounded">
+ *                     &lt;element ref="{model.rest.persistence.iks.srdc.com.tr}IndividualMetaInformation"/>
+ *                     &lt;element name="Literal" type="{model.rest.persistence.iks.srdc.com.tr}non_empty_string"/>
+ *                   &lt;/choice>
+ *                 &lt;/sequence>
+ *               &lt;/restriction>
+ *             &lt;/complexContent>
+ *           &lt;/complexType>
+ *         &lt;/element>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {"propertyAssertion"})
+@XmlRootElement(name = "PropertyAssertions")
+public class PropertyAssertions {
+
+    @XmlElement(name = "PropertyAssertion")
+    protected List<PropertyAssertions.PropertyAssertion> propertyAssertion;
+
+    /**
+     * Gets the value of the propertyAssertion property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification
+     * you make to the returned list will be present inside the JAXB object. This is why there is not a
+     * <CODE>set</CODE> method for the propertyAssertion property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * 
+     * <pre>
+     * getPropertyAssertion().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list {@link PropertyAssertions.PropertyAssertion }
+     * 
+     * 
+     */
+    public List<PropertyAssertions.PropertyAssertion> getPropertyAssertion() {
+        if (propertyAssertion == null) {
+            propertyAssertion = new ArrayList<PropertyAssertions.PropertyAssertion>();
+        }
+        return this.propertyAssertion;
+    }
+
+    /**
+     * <p>
+     * Java class for anonymous complex type.
+     * 
+     * <p>
+     * The following schema fragment specifies the expected content contained within this class.
+     * 
+     * <pre>
+     * &lt;complexType>
+     *   &lt;complexContent>
+     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       &lt;sequence>
+     *         &lt;element ref="{model.rest.persistence.iks.srdc.com.tr}PropertyMetaInformation"/>
+     *         &lt;choice maxOccurs="unbounded">
+     *           &lt;element ref="{model.rest.persistence.iks.srdc.com.tr}IndividualMetaInformation"/>
+     *           &lt;element name="Literal" type="{model.rest.persistence.iks.srdc.com.tr}non_empty_string"/>
+     *         &lt;/choice>
+     *       &lt;/sequence>
+     *     &lt;/restriction>
+     *   &lt;/complexContent>
+     * &lt;/complexType>
+     * </pre>
+     * 
+     * 
+     */
+    @XmlAccessorType(XmlAccessType.FIELD)
+    @XmlType(name = "", propOrder = {"propertyMetaInformation", "individualMetaInformationOrLiteral"})
+    public static class PropertyAssertion {
+
+        @XmlElement(name = "PropertyMetaInformation", required = true)
+        protected PropertyMetaInformation propertyMetaInformation;
+        @XmlElements({@XmlElement(name = "Literal", type = String.class),
+                      @XmlElement(name = "IndividualMetaInformation", type = IndividualMetaInformation.class)})
+        protected List<Object> individualMetaInformationOrLiteral;
+
+        /**
+         * Gets the value of the propertyMetaInformation property.
+         * 
+         * @return possible object is {@link PropertyMetaInformation }
+         * 
+         */
+        public PropertyMetaInformation getPropertyMetaInformation() {
+            return propertyMetaInformation;
+        }
+
+        /**
+         * Sets the value of the propertyMetaInformation property.
+         * 
+         * @param value
+         *            allowed object is {@link PropertyMetaInformation }
+         * 
+         */
+        public void setPropertyMetaInformation(PropertyMetaInformation value) {
+            this.propertyMetaInformation = value;
+        }
+
+        /**
+         * Gets the value of the individualMetaInformationOrLiteral property.
+         * 
+         * <p>
+         * This accessor method returns a reference to the live list, not a snapshot. Therefore any
+         * modification you make to the returned list will be present inside the JAXB object. This is why
+         * there is not a <CODE>set</CODE> method for the individualMetaInformationOrLiteral property.
+         * 
+         * <p>
+         * For example, to add a new item, do as follows:
+         * 
+         * <pre>
+         * getIndividualMetaInformationOrLiteral().add(newItem);
+         * </pre>
+         * 
+         * 
+         * <p>
+         * Objects of the following type(s) are allowed in the list {@link String }
+         * {@link IndividualMetaInformation }
+         * 
+         * 
+         */
+        public List<Object> getIndividualMetaInformationOrLiteral() {
+            if (individualMetaInformationOrLiteral == null) {
+                individualMetaInformationOrLiteral = new ArrayList<Object>();
+            }
+            return this.individualMetaInformationOrLiteral;
+        }
+
+    }
+
+}

Added: incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/PropertyMetaInformation.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/PropertyMetaInformation.java?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/PropertyMetaInformation.java (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/PropertyMetaInformation.java Wed Mar 30 13:43:53 2011
@@ -0,0 +1,38 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.4-b02-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.05.13 at 09:50:16 AM EEST 
+//
+
+package org.apache.stanbol.ontologymanager.store.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for anonymous complex type.
+ * 
+ * <p>
+ * The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;extension base="{model.rest.persistence.iks.srdc.com.tr}ResourceMetaInformationType">
+ *     &lt;/extension>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "")
+@XmlRootElement(name = "PropertyMetaInformation")
+public class PropertyMetaInformation extends ResourceMetaInformationType {
+
+}

Added: incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/Range.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/Range.java?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/Range.java (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/Range.java Wed Mar 30 13:43:53 2011
@@ -0,0 +1,80 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1-b02-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2010.09.06 at 01:54:21 PM EEST 
+//
+
+package org.apache.stanbol.ontologymanager.store.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for anonymous complex type.
+ * 
+ * <p>
+ * The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;choice maxOccurs="unbounded">
+ *         &lt;element ref="{model.rest.persistence.iks.srdc.com.tr}ClassMetaInformation"/>
+ *         &lt;element ref="{model.rest.persistence.iks.srdc.com.tr}BuiltInResource"/>
+ *       &lt;/choice>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {"classMetaInformationOrBuiltInResource"})
+@XmlRootElement(name = "Range")
+public class Range {
+
+    @XmlElements({@XmlElement(name = "ClassMetaInformation", type = ClassMetaInformation.class),
+                  @XmlElement(name = "BuiltInResource", type = BuiltInResource.class)})
+    protected List<Object> classMetaInformationOrBuiltInResource;
+
+    /**
+     * Gets the value of the classMetaInformationOrBuiltInResource property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification
+     * you make to the returned list will be present inside the JAXB object. This is why there is not a
+     * <CODE>set</CODE> method for the classMetaInformationOrBuiltInResource property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * 
+     * <pre>
+     * getClassMetaInformationOrBuiltInResource().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list {@link ClassMetaInformation }
+     * {@link BuiltInResource }
+     * 
+     * 
+     */
+    public List<Object> getClassMetaInformationOrBuiltInResource() {
+        if (classMetaInformationOrBuiltInResource == null) {
+            classMetaInformationOrBuiltInResource = new ArrayList<Object>();
+        }
+        return this.classMetaInformationOrBuiltInResource;
+    }
+
+}

Added: incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/ResourceMetaInformationType.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/ResourceMetaInformationType.java?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/ResourceMetaInformationType.java (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/ResourceMetaInformationType.java Wed Mar 30 13:43:53 2011
@@ -0,0 +1,165 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.4-b02-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.05.13 at 09:50:16 AM EEST 
+//
+
+package org.apache.stanbol.ontologymanager.store.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for ResourceMetaInformationType complex type.
+ * 
+ * <p>
+ * The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="ResourceMetaInformationType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{model.rest.persistence.iks.srdc.com.tr}URI"/>
+ *         &lt;element ref="{model.rest.persistence.iks.srdc.com.tr}Description" minOccurs="0"/>
+ *         &lt;element name="Namespace" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="LocalName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       &lt;/sequence>
+ *       &lt;attribute ref="{http://www.w3.org/1999/xlink}href use="required""/>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ResourceMetaInformationType", propOrder = {"uri", "description", "namespace", "localName"})
+@XmlSeeAlso({IndividualMetaInformation.class, ClassMetaInformation.class, PropertyMetaInformation.class})
+public class ResourceMetaInformationType {
+
+    @XmlElement(name = "URI", required = true)
+    protected String uri;
+    @XmlElement(name = "Description")
+    protected String description;
+    @XmlElement(name = "Namespace", required = true)
+    protected String namespace;
+    @XmlElement(name = "LocalName", required = true)
+    protected String localName;
+    @XmlAttribute(namespace = "http://www.w3.org/1999/xlink", required = true)
+    @XmlSchemaType(name = "anyURI")
+    protected String href;
+
+    /**
+     * Gets the value of the uri property.
+     * 
+     * @return possible object is {@link String }
+     * 
+     */
+    public String getURI() {
+        return uri;
+    }
+
+    /**
+     * Sets the value of the uri property.
+     * 
+     * @param value
+     *            allowed object is {@link String }
+     * 
+     */
+    public void setURI(String value) {
+        this.uri = value;
+    }
+
+    /**
+     * Gets the value of the description property.
+     * 
+     * @return possible object is {@link String }
+     * 
+     */
+    public String getDescription() {
+        return description;
+    }
+
+    /**
+     * Sets the value of the description property.
+     * 
+     * @param value
+     *            allowed object is {@link String }
+     * 
+     */
+    public void setDescription(String value) {
+        this.description = value;
+    }
+
+    /**
+     * Gets the value of the namespace property.
+     * 
+     * @return possible object is {@link String }
+     * 
+     */
+    public String getNamespace() {
+        return namespace;
+    }
+
+    /**
+     * Sets the value of the namespace property.
+     * 
+     * @param value
+     *            allowed object is {@link String }
+     * 
+     */
+    public void setNamespace(String value) {
+        this.namespace = value;
+    }
+
+    /**
+     * Gets the value of the localName property.
+     * 
+     * @return possible object is {@link String }
+     * 
+     */
+    public String getLocalName() {
+        return localName;
+    }
+
+    /**
+     * Sets the value of the localName property.
+     * 
+     * @param value
+     *            allowed object is {@link String }
+     * 
+     */
+    public void setLocalName(String value) {
+        this.localName = value;
+    }
+
+    /**
+     * Gets the value of the href property.
+     * 
+     * @return possible object is {@link String }
+     * 
+     */
+    public String getHref() {
+        return href;
+    }
+
+    /**
+     * Sets the value of the href property.
+     * 
+     * @param value
+     *            allowed object is {@link String }
+     * 
+     */
+    public void setHref(String value) {
+        this.href = value;
+    }
+
+}

Added: incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/SuperProperties.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/SuperProperties.java?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/SuperProperties.java (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/SuperProperties.java Wed Mar 30 13:43:53 2011
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.4-b02-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.05.13 at 09:50:16 AM EEST 
+//
+
+package org.apache.stanbol.ontologymanager.store.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for anonymous complex type.
+ * 
+ * <p>
+ * The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{model.rest.persistence.iks.srdc.com.tr}PropertyMetaInformation" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {"propertyMetaInformation"})
+@XmlRootElement(name = "SuperProperties")
+public class SuperProperties {
+
+    @XmlElement(name = "PropertyMetaInformation")
+    protected List<PropertyMetaInformation> propertyMetaInformation;
+
+    /**
+     * Gets the value of the propertyMetaInformation property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification
+     * you make to the returned list will be present inside the JAXB object. This is why there is not a
+     * <CODE>set</CODE> method for the propertyMetaInformation property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * 
+     * <pre>
+     * getPropertyMetaInformation().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list {@link PropertyMetaInformation }
+     * 
+     * 
+     */
+    public List<PropertyMetaInformation> getPropertyMetaInformation() {
+        if (propertyMetaInformation == null) {
+            propertyMetaInformation = new ArrayList<PropertyMetaInformation>();
+        }
+        return this.propertyMetaInformation;
+    }
+
+}

Added: incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/Superclasses.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/Superclasses.java?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/Superclasses.java (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/Superclasses.java Wed Mar 30 13:43:53 2011
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.4-b02-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.05.13 at 09:50:16 AM EEST 
+//
+
+package org.apache.stanbol.ontologymanager.store.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * <p>
+ * Java class for anonymous complex type.
+ * 
+ * <p>
+ * The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{model.rest.persistence.iks.srdc.com.tr}ClassMetaInformation" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {"classMetaInformation"})
+@XmlRootElement(name = "Superclasses")
+public class Superclasses {
+
+    @XmlElement(name = "ClassMetaInformation")
+    protected List<ClassMetaInformation> classMetaInformation;
+
+    /**
+     * Gets the value of the classMetaInformation property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification
+     * you make to the returned list will be present inside the JAXB object. This is why there is not a
+     * <CODE>set</CODE> method for the classMetaInformation property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * 
+     * <pre>
+     * getClassMetaInformation().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list {@link ClassMetaInformation }
+     * 
+     * 
+     */
+    public List<ClassMetaInformation> getClassMetaInformation() {
+        if (classMetaInformation == null) {
+            classMetaInformation = new ArrayList<ClassMetaInformation>();
+        }
+        return this.classMetaInformation;
+    }
+
+}

Added: incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/package-info.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/package-info.java?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/package-info.java (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/java/org/apache/stanbol/ontologymanager/store/model/package-info.java Wed Mar 30 13:43:53 2011
@@ -0,0 +1,10 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.4-b02-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.05.13 at 09:50:16 AM EEST 
+//
+
+@javax.xml.bind.annotation.XmlSchema(namespace = "model.rest.persistence.iks.srdc.com.tr", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.apache.stanbol.ontologymanager.store.model;
+

Added: incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/resources/model/PersistenceStoreRESTfulInterface.xsd
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/resources/model/PersistenceStoreRESTfulInterface.xsd?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/resources/model/PersistenceStoreRESTfulInterface.xsd (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/resources/model/PersistenceStoreRESTfulInterface.xsd Wed Mar 30 13:43:53 2011
@@ -0,0 +1,254 @@
+<!-- edited with XMLSpy v2008 rel. 2 sp2 (http://www.altova.com) by cds (aaaaaa) -->
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="model.rest.persistence.iks.srdc.com.tr" xmlns:xlink="http://www.w3.org/1999/xlink" targetNamespace="model.rest.persistence.iks.srdc.com.tr" elementFormDefault="qualified" attributeFormDefault="qualified">
+	<xsd:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlinks.xsd"/>
+	<!-- AdministeredOntologies -->
+	<xsd:element name="AdministeredOntologies">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:OntologyMetaInformation" minOccurs="0" maxOccurs="unbounded"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="OntologyMetaInformation">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:URI"/>
+				<xsd:element ref="tns:Description" minOccurs="0"/>
+			</xsd:sequence>
+			<xsd:attribute ref="xlink:href" use="required"/>
+		</xsd:complexType>
+	</xsd:element>
+	<!-- ********************** -->
+	<xsd:element name="ClassesForOntology">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:OntologyMetaInformation"/>
+				<xsd:element ref="tns:ClassMetaInformation" minOccurs="0" maxOccurs="unbounded"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="DatatypePropertiesForOntology">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:OntologyMetaInformation"/>
+				<xsd:element ref="tns:PropertyMetaInformation" minOccurs="0" maxOccurs="unbounded"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="ObjectPropertiesForOntology">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:OntologyMetaInformation"/>
+				<xsd:element ref="tns:PropertyMetaInformation" minOccurs="0" maxOccurs="unbounded"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="IndividualsForOntology">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:OntologyMetaInformation"/>
+				<xsd:element ref="tns:IndividualMetaInformation" minOccurs="0" maxOccurs="unbounded"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<!-- FIXME: You may wish to combine ClassMetaInformation, PropertyMetaInformation, IndividualMetaInformation-->
+	<xsd:complexType name="ResourceMetaInformationType">
+		<xsd:sequence>
+			<xsd:element ref="tns:URI"/>
+			<xsd:element ref="tns:Description" minOccurs="0"/>
+			<xsd:element name="Namespace" type="xsd:string"/>
+			<xsd:element name="LocalName" type="xsd:string"/>
+		</xsd:sequence>
+		<xsd:attribute ref="xlink:href" use="required"/>
+	</xsd:complexType>
+	<xsd:element name="ClassMetaInformation">
+		<xsd:complexType>
+			<xsd:complexContent>
+				<xsd:extension base="tns:ResourceMetaInformationType"/>
+			</xsd:complexContent>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="PropertyMetaInformation">
+		<xsd:complexType>
+			<xsd:complexContent>
+				<xsd:extension base="tns:ResourceMetaInformationType"/>
+			</xsd:complexContent>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="IndividualMetaInformation">
+		<xsd:complexType>
+			<xsd:complexContent>
+				<xsd:extension base="tns:ResourceMetaInformationType"/>
+			</xsd:complexContent>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="BuiltInResource">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:URI"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="ClassConstraint">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:choice maxOccurs="unbounded">
+					<xsd:element ref="tns:ClassConstraint"/>
+					<xsd:element ref="tns:ClassMetaInformation"/>
+					<xsd:element ref="tns:PropertyMetaInformation"/>
+					<xsd:element name="Literal" type="tns:non_empty_string"/>
+				</xsd:choice>
+			</xsd:sequence>
+			<xsd:attribute name="type" type="tns:ConstraintType" use="required"/>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="ClassContext">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:ClassMetaInformation"/>
+				<xsd:element ref="tns:EquivalentClasses"/>
+				<xsd:element ref="tns:Superclasses"/>
+				<xsd:element ref="tns:DisjointClasses"/>
+				<xsd:element ref="tns:ClassConstraint" minOccurs="0" maxOccurs="unbounded"/>
+				<!--xsd:element ref="tns:Individuals" minOccurs="0" maxOccurs="1"/-->
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="DatatypePropertyContext">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:PropertyMetaInformation"/>
+				<xsd:element ref="tns:Domain" minOccurs="0"/>
+				<xsd:element ref="tns:Range" minOccurs="0"/>
+				<xsd:element ref="tns:EquivalentProperties"/>
+				<xsd:element ref="tns:SuperProperties"/>
+				<!--xsd:element ref="tns:Individuals" minOccurs="0" maxOccurs="1"/-->
+			</xsd:sequence>
+			<xsd:attribute name="isFunctional" type="xsd:boolean" use="required"/>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="ObjectPropertyContext">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:PropertyMetaInformation"/>
+				<xsd:element ref="tns:Domain" minOccurs="0"/>
+				<xsd:element ref="tns:Range" minOccurs="0"/>
+				<xsd:element ref="tns:EquivalentProperties"/>
+				<xsd:element ref="tns:SuperProperties"/>
+				<!-- Inverse -->
+				<!-- Disjoint -->
+				<!-- Property Chains-->
+				<!--xsd:element ref="tns:Individuals" minOccurs="0" maxOccurs="1"/-->
+			</xsd:sequence>
+			<xsd:attribute name="isFunctional" type="xsd:boolean" use="required"/>
+			<xsd:attribute name="isInverseFunctional" type="xsd:boolean" use="required"/>
+			<xsd:attribute name="isTransitive" type="xsd:boolean" use="required"/>
+			<xsd:attribute name="isSymmetric" type="xsd:boolean" use="required"/>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="IndividualContext">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:IndividualMetaInformation"/>
+				<xsd:element ref="tns:ContainerClasses"/>
+				<xsd:element ref="tns:PropertyAssertions"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="ContainerClasses">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:ClassMetaInformation" minOccurs="0" maxOccurs="unbounded"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="PropertyAssertions">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element name="PropertyAssertion" minOccurs="0" maxOccurs="unbounded">
+					<xsd:complexType>
+						<xsd:sequence>
+							<xsd:element ref="tns:PropertyMetaInformation"/>
+							<xsd:choice maxOccurs="unbounded">
+								<xsd:element ref="tns:IndividualMetaInformation"/>
+								<xsd:element name="Literal" type="tns:non_empty_string"/>
+							</xsd:choice>
+						</xsd:sequence>
+					</xsd:complexType>
+				</xsd:element>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="Domain">
+		<xsd:complexType>
+			<xsd:choice minOccurs="0" maxOccurs="unbounded">
+				<xsd:element ref="tns:ClassMetaInformation"/>
+				<xsd:element ref="tns:BuiltInResource"/>
+			</xsd:choice>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="Range">
+		<xsd:complexType>
+			<xsd:choice minOccurs="0" maxOccurs="unbounded">
+				<xsd:element ref="tns:ClassMetaInformation"/>
+				<xsd:element ref="tns:BuiltInResource"/>
+			</xsd:choice>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="EquivalentClasses">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:ClassMetaInformation" minOccurs="0" maxOccurs="unbounded"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="Superclasses">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:ClassMetaInformation" minOccurs="0" maxOccurs="unbounded"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="DisjointClasses">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:ClassMetaInformation" minOccurs="0" maxOccurs="unbounded"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="EquivalentProperties">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:PropertyMetaInformation" minOccurs="0" maxOccurs="unbounded"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="SuperProperties">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:PropertyMetaInformation" minOccurs="0" maxOccurs="unbounded"/>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	<xsd:element name="URI" type="tns:non_empty_string"/>
+	<xsd:element name="Description" type="xsd:string"/>
+	<xsd:simpleType name="non_empty_string">
+		<xsd:restriction base="xsd:string">
+			<xsd:minLength value="1"/>
+		</xsd:restriction>
+	</xsd:simpleType>
+	<xsd:simpleType name="ConstraintType">
+		<xsd:restriction base="xsd:NMTOKEN">
+			<xsd:enumeration value="complement_of"/>
+			<xsd:enumeration value="enumeration_of"/>
+			<xsd:enumeration value="intersection_of"/>
+			<xsd:enumeration value="union_of"/>
+			<xsd:enumeration value="all_values_from"/>
+			<xsd:enumeration value="some_values_from"/>
+			<xsd:enumeration value="cardinality"/>
+			<xsd:enumeration value="max_cardinality"/>
+			<xsd:enumeration value="min_cardinality"/>
+			<xsd:enumeration value="has_value"/>
+		</xsd:restriction>
+	</xsd:simpleType>
+</xsd:schema>

Added: incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/resources/model/SearchRESTfulInterface.xsd
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/resources/model/SearchRESTfulInterface.xsd?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/resources/model/SearchRESTfulInterface.xsd (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/resources/model/SearchRESTfulInterface.xsd Wed Mar 30 13:43:53 2011
@@ -0,0 +1,216 @@
+<xsd:schema
+	targetNamespace="search.model.rest.persistence.iks.srdc.com.tr"	
+	attributeFormDefault="qualified" 
+	elementFormDefault="qualified" 
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:tns="search.model.rest.persistence.iks.srdc.com.tr">
+
+	<xsd:element name="Query">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:KeywordList" minOccurs="1" maxOccurs="1" />
+				<xsd:element ref="tns:StructuralQueryPart" minOccurs="1" maxOccurs="1" />
+				<xsd:element ref="tns:FullTextSearchResultList" minOccurs="1" maxOccurs="1" />
+			</xsd:sequence>
+			<xsd:attribute name="useSynonymsInOntologyLookup" type="xsd:boolean" use="required"/>
+			<xsd:attribute name="usedbPediaForFindingSimilarContent" type="xsd:boolean" use="required"/>
+			<xsd:attribute name="flexibilityClasses" type="xsd:integer" use="optional" />
+			<xsd:attribute name="flexibilityIndividuals" type="xsd:integer" use="optional" />
+			<xsd:attribute name="maxResults" type="xsd:integer" use="optional" />
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:element name="Result">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:ReturnedDocuments" minOccurs="1" maxOccurs="1" />
+				<xsd:element ref="tns:ReturnedOntologyResources" minOccurs="1" maxOccurs="1" />
+				<xsd:element ref="tns:TopRelatedOntologyResources" minOccurs="1" maxOccurs="1" />
+				<xsd:element ref="tns:ReturnedWordnetResources" minOccurs="1" maxOccurs="1" />
+				<xsd:element ref="tns:ReturnedDBPediaResources" minOccurs="1" maxOccurs="1" />
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:element name="TopRelatedOntologyResources">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:ClassResource" minOccurs="0" maxOccurs="unbounded" />
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+	<xsd:element name="ReturnedDBPediaResources">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:DBPediaResource" minOccurs="0" maxOccurs="unbounded" />
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	
+	<xsd:element name="DBPediaResource">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element name="Property" type="tns:non_empty_string" minOccurs="1" maxOccurs="1" />
+				<xsd:element name="Object" type="tns:non_empty_string" minOccurs="1" maxOccurs="1" />
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:element name="ReturnedWordnetResources">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:WordnetResource" minOccurs="0" maxOccurs="unbounded" />
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:element name="WordnetResource">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element name="Name" type="tns:non_empty_string" minOccurs="1" maxOccurs="1" />
+				<xsd:element name="Score" type="xsd:float" minOccurs="1" maxOccurs="1" />
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:element name="ReturnedDocuments">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:Document" minOccurs="0" maxOccurs="unbounded" />
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:element name="Document">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element name="DocumentXPath" type="tns:non_empty_string" minOccurs="1" maxOccurs="1" />
+				<xsd:element name="PrimaryType" type="tns:non_empty_string" minOccurs="0" maxOccurs="1" />
+				<xsd:element name="Score" type="xsd:float" minOccurs="1" maxOccurs="1" />
+				<xsd:element name="RelatedTo" minOccurs="0" maxOccurs="1" >
+					<xsd:complexType>
+						<xsd:sequence>
+							<xsd:element name="ClassURI" type="tns:non_empty_string" minOccurs="1" maxOccurs="unbounded" />
+						</xsd:sequence>
+					</xsd:complexType>
+				</xsd:element>
+				<xsd:element name="Metadata" minOccurs="0" maxOccurs="1" >
+					<xsd:complexType>
+						<xsd:sequence>
+							<xsd:element name="NameValuePair" minOccurs="1" maxOccurs="unbounded" >
+								<xsd:complexType>
+									<xsd:sequence>
+										<xsd:element name="Name" type="xsd:string" />
+										<xsd:element name="Value" type="xsd:string" />
+									</xsd:sequence>
+								</xsd:complexType>
+							</xsd:element>
+						</xsd:sequence>
+					</xsd:complexType>
+				</xsd:element>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:element name="ReturnedOntologyResources">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:ClassResource" minOccurs="0" maxOccurs="unbounded" />
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:element name="ClassResource">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element name="ClassURI" type="tns:non_empty_string" minOccurs="1" maxOccurs="1" />
+				<xsd:element name="Score" type="xsd:float" minOccurs="1" maxOccurs="1" />
+				<xsd:element ref="tns:ClassResource" minOccurs="0" maxOccurs="unbounded" />
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<!--
+	<xsd:element name="IndividualResource">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element name="IndividualURI" type="tns:non_empty_string" minOccurs="1" maxOccurs="1" />
+				<xsd:element name="Score" type="xsd:float" minOccurs="1" maxOccurs="1" />
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+	-->
+
+	<xsd:element name="StructuralQueryPart">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:choice minOccurs="0" maxOccurs="1">
+					<xsd:element name="SPARQLQuery" type="tns:non_empty_string"/>
+					<xsd:element ref="tns:ResourceList"/>
+				</xsd:choice>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:element name="KeywordList">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element name="Operator" type="tns:OperatorType" minOccurs="0" maxOccurs="1" />
+				<xsd:choice minOccurs="0" maxOccurs="unbounded">
+					<xsd:element ref="tns:KeywordList"/>
+					<xsd:element name="Keyword" type="tns:non_empty_string"/>
+				</xsd:choice>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:element name="ResourceList">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element name="SelectiveResource" minOccurs="0" maxOccurs="unbounded" >
+					<xsd:complexType>
+						<xsd:sequence>
+							<xsd:element name="Operator" type="tns:OperatorType" minOccurs="0" maxOccurs="1" />
+							<xsd:element name="ResourceURI" type="tns:non_empty_string"/>
+						</xsd:sequence>					
+					</xsd:complexType>
+				</xsd:element>
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:element name="FullTextSearchResultList">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element ref="tns:FullTextSearchResult" minOccurs="0" maxOccurs="unbounded" />
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:element name="FullTextSearchResult">
+		<xsd:complexType>
+			<xsd:sequence>
+				<xsd:element name="DocumentXPath" type="tns:non_empty_string" minOccurs="1" maxOccurs="1" />
+				<xsd:element name="Score" type="xsd:float" minOccurs="1" maxOccurs="1" />
+			</xsd:sequence>
+		</xsd:complexType>
+	</xsd:element>
+
+	<xsd:simpleType name="non_empty_string">
+		<xsd:restriction base="xsd:string">
+			<xsd:minLength value="1" />
+		</xsd:restriction>
+	</xsd:simpleType>
+
+	<xsd:simpleType name = "OperatorType">
+		<xsd:restriction base = "xsd:NMTOKEN">
+			<xsd:enumeration value = "EXACT"/>
+			<xsd:enumeration value = "AND"/>
+			<xsd:enumeration value = "OR"/>
+			<xsd:enumeration value = "NOT_SELECTIVE"/>
+			<xsd:enumeration value = "EXCLUDE"/>
+		</xsd:restriction>
+	</xsd:simpleType>
+
+</xsd:schema>

Added: incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/resources/model/xlinks.xsd
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/resources/model/xlinks.xsd?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/resources/model/xlinks.xsd (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/api/src/main/resources/model/xlinks.xsd Wed Mar 30 13:43:53 2011
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- File: xlinks.xsd  -->
+<schema targetNamespace="http://www.w3.org/1999/xlink" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="2.0">
+	<annotation>
+		<appinfo source="urn:opengis:specification:gml:schema-xlinks:v3.0c2">xlinks.xsd v3.0b2 2001-07</appinfo>
+		<documentation>
+			GML 3.0 candidate xlinks schema. Copyright (c) 2001 OGC, All Rights Reserved.
+		</documentation>
+	</annotation>
+	<!-- ==============================================================
+       global declarations
+  	=============================================================== -->
+	<!-- locator attribute -->
+	<attribute name="href" type="anyURI"/>
+	<!-- semantic attributes -->
+	<attribute name="role" type="anyURI"/>
+	<attribute name="arcrole" type="anyURI"/>
+	<attribute name="title" type="string"/>
+	<!-- behavior attributes -->
+	<attribute name="show">
+		<annotation>
+			<documentation>
+        The 'show' attribute is used to communicate the desired presentation 
+        of the ending resource on traversal from the starting resource; it's 
+        value should be treated as follows: 
+        new - load ending resource in a new window, frame, pane, or other 
+              presentation context
+        replace - load the resource in the same window, frame, pane, or 
+                  other presentation context
+        embed - load ending resource in place of the presentation of the 
+                starting resource
+        other - behavior is unconstrained; examine other markup in the 
+                link for hints 
+        none - behavior is unconstrained 
+      </documentation>
+		</annotation>
+		<simpleType>
+			<restriction base="string">
+				<enumeration value="new"/>
+				<enumeration value="replace"/>
+				<enumeration value="embed"/>
+				<enumeration value="other"/>
+				<enumeration value="none"/>
+			</restriction>
+		</simpleType>
+	</attribute>
+	<attribute name="actuate">
+		<annotation>
+			<documentation>
+        The 'actuate' attribute is used to communicate the desired timing 
+        of traversal from the starting resource to the ending resource; 
+        it's value should be treated as follows:
+        onLoad - traverse to the ending resource immediately on loading 
+                 the starting resource 
+        onRequest - traverse from the starting resource to the ending 
+                    resource only on a post-loading event triggered for 
+                    this purpose 
+        other - behavior is unconstrained; examine other markup in link 
+                for hints 
+        none - behavior is unconstrained
+      </documentation>
+		</annotation>
+		<simpleType>
+			<restriction base="string">
+				<enumeration value="onLoad"/>
+				<enumeration value="onRequest"/>
+				<enumeration value="other"/>
+				<enumeration value="none"/>
+			</restriction>
+		</simpleType>
+	</attribute>
+	<!-- traversal attributes -->
+	<attribute name="label" type="string"/>
+	<attribute name="from" type="string"/>
+	<attribute name="to" type="string"/>
+	<!-- ==============================================================
+       Attributes grouped by XLink type, as specified in the W3C 
+       Proposed Recommendation (dated 2000-12-20)
+	============================================================== -->
+	<attributeGroup name="simpleLink">
+		<attribute name="type" type="string" fixed="simple" form="qualified"/>
+		<attribute ref="xlink:href" use="optional"/>
+		<attribute ref="xlink:role" use="optional"/>
+		<attribute ref="xlink:arcrole" use="optional"/>
+		<attribute ref="xlink:title" use="optional"/>
+		<attribute ref="xlink:show" use="optional"/>
+		<attribute ref="xlink:actuate" use="optional"/>
+	</attributeGroup>
+	<attributeGroup name="extendedLink">
+		<attribute name="type" type="string" fixed="extended" form="qualified"/>
+		<attribute ref="xlink:role" use="optional"/>
+		<attribute ref="xlink:title" use="optional"/>
+	</attributeGroup>
+	<attributeGroup name="locatorLink">
+		<attribute name="type" type="string" fixed="locator" form="qualified"/>
+		<attribute ref="xlink:href" use="required"/>
+		<attribute ref="xlink:role" use="optional"/>
+		<attribute ref="xlink:title" use="optional"/>
+		<attribute ref="xlink:label" use="optional"/>
+	</attributeGroup>
+	<attributeGroup name="arcLink">
+		<attribute name="type" type="string" fixed="arc" form="qualified"/>
+		<attribute ref="xlink:arcrole" use="optional"/>
+		<attribute ref="xlink:title" use="optional"/>
+		<attribute ref="xlink:show" use="optional"/>
+		<attribute ref="xlink:actuate" use="optional"/>
+		<attribute ref="xlink:from" use="optional"/>
+		<attribute ref="xlink:to" use="optional"/>
+	</attributeGroup>
+	<attributeGroup name="resourceLink">
+		<attribute name="type" type="string" fixed="resource" form="qualified"/>
+		<attribute ref="xlink:role" use="optional"/>
+		<attribute ref="xlink:title" use="optional"/>
+		<attribute ref="xlink:label" use="optional"/>
+	</attributeGroup>
+	<attributeGroup name="titleLink">
+		<attribute name="type" type="string" fixed="title" form="qualified"/>
+	</attributeGroup>
+	<attributeGroup name="emptyLink">
+		<attribute name="type" type="string" fixed="none" form="qualified"/>
+	</attributeGroup>
+</schema>

Added: incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/pom.xml
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/pom.xml?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/pom.xml (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/pom.xml Wed Mar 30 13:43:53 2011
@@ -0,0 +1,115 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+	<parent>
+		<artifactId>org.apache.stanbol.ontologymanager.store.parent</artifactId>
+		<groupId>org.apache.stanbol</groupId>
+		<version>0.9-SNAPSHOT</version>
+		<relativePath>../parent</relativePath>
+	</parent>
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>org.apache.stanbol.ontologymanager.store.clerezza</artifactId>
+	<packaging>bundle</packaging>
+	<name>Apache Stanbol Ontology Manager Store - Clerezza Adaptor </name>
+
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.felix</groupId>
+				<artifactId>maven-bundle-plugin</artifactId>
+				<extensions>true</extensions>
+				<configuration>
+					<instructions>
+						<Service-Component>OSGI-INF/serviceComponents.xml</Service-Component>
+					</instructions>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.felix</groupId>
+				<artifactId>maven-scr-plugin</artifactId>
+				<configuration>
+					<excludes>eu/iksproject/fise/stores/persistencestore/rest/model/**</excludes>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+	<dependencies>
+
+		<dependency>
+			<groupId>org.apache.felix</groupId>
+			<artifactId>org.apache.felix.scr</artifactId>
+			<version>1.4.0</version>
+			<type>bundle</type>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.felix</groupId>
+			<artifactId>org.apache.felix.scr.annotations</artifactId>
+			<scope>provided</scope>
+		</dependency>
+
+		<dependency>
+			<groupId>org.osgi</groupId>
+			<artifactId>org.osgi.compendium</artifactId>
+			<version>4.1.0</version>
+			<scope>provided</scope>
+		</dependency>
+		<!-- specific deps for this project -->
+		<dependency>
+			<groupId>org.osgi</groupId>
+			<artifactId>org.osgi.core</artifactId>
+			<version>4.1.0</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>jetty</groupId>
+			<artifactId>org.mortbay.jetty</artifactId>
+			<version>5.1.10</version>
+			<type>jar</type>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>commons-logging</groupId>
+			<artifactId>commons-logging</artifactId>
+			<version>1.1.1</version>
+			<type>jar</type>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.slf4j</groupId>
+			<artifactId>slf4j-api</artifactId>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.clerezza</groupId>
+			<artifactId>org.apache.clerezza.rdf.jena.facade</artifactId>
+			<version>0.12-incubating-SNAPSHOT</version>
+			<type>bundle</type>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.clerezza</groupId>
+			<artifactId>org.apache.clerezza.rdf.core</artifactId>
+			<version>0.12-incubating-SNAPSHOT</version>
+			<type>bundle</type>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>com.hp.hpl.jena</groupId>
+			<artifactId>jena</artifactId>
+			<version>2.6.3</version>
+			<type>jar</type>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.stanbol</groupId>
+			<artifactId>org.apache.stanbol.ontologymanager.store.api</artifactId>
+		</dependency>
+	</dependencies>
+	<properties>
+		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+		<jersey-version>1.1.5.1</jersey-version>
+	</properties>
+	
+</project>

Propchange: incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/ClerezzaAdaptor.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/ClerezzaAdaptor.java?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/ClerezzaAdaptor.java (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/ClerezzaAdaptor.java Wed Mar 30 13:43:53 2011
@@ -0,0 +1,118 @@
+package org.apache.stanbol.ontologymanager.store.clerezza;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.clerezza.rdf.core.MGraph;
+import org.apache.clerezza.rdf.core.UriRef;
+import org.apache.clerezza.rdf.core.access.TcManager;
+import org.apache.clerezza.rdf.jena.facade.JenaGraph;
+import org.apache.felix.scr.annotations.Activate;
+import org.apache.felix.scr.annotations.Component;
+import org.apache.felix.scr.annotations.Deactivate;
+import org.apache.felix.scr.annotations.Reference;
+import org.apache.felix.scr.annotations.Service;
+import org.apache.stanbol.ontologymanager.store.api.JenaPersistenceProvider;
+import org.osgi.service.component.ComponentContext;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import com.hp.hpl.jena.rdf.model.Model;
+import com.hp.hpl.jena.rdf.model.ModelFactory;
+
+@Component
+@Service
+public class ClerezzaAdaptor implements JenaPersistenceProvider {
+
+    Logger logger = LoggerFactory.getLogger(ClerezzaAdaptor.class);
+
+    @Reference
+    private TcManager tcManager;
+
+    @Activate
+    public void activate(ComponentContext cc) {
+
+    }
+
+    @Deactivate
+    public void deactivate(ComponentContext cc) {
+
+    }
+
+    @Override
+    public boolean clear() {
+        try {
+            for (UriRef uri : tcManager.listMGraphs()) {
+                tcManager.deleteTripleCollection(uri);
+            }
+            return true;
+        } catch (Exception e) {
+            logger.error("Can not clear triple store", e);
+        }
+        return false;
+    }
+
+    @Override
+    public boolean commit(Model model) {
+        if (model != null && model.supportsTransactions()) {
+            model.commit();
+            return true;
+        } else {
+            return false;
+        }
+    }
+
+    @Override
+    public Model createModel(String ontologyURI) {
+        MGraph graph = null;
+        if (hasModel(ontologyURI)) {
+            removeModel(ontologyURI);
+            graph = tcManager.getMGraph(new UriRef(ontologyURI));
+        } else {
+            graph = tcManager.createMGraph(new UriRef(ontologyURI));
+
+        }
+        JenaGraph jenaGraph = new JenaGraph(graph);
+        Model model = ModelFactory.createModelForGraph(jenaGraph);
+        return model;
+    }
+
+    @Override
+    public Model getModel(String ontologyURI) {
+        MGraph graph = tcManager.getMGraph(new UriRef(ontologyURI));
+        JenaGraph jenaGraph = new JenaGraph(graph);
+        Model model = ModelFactory.createModelForGraph(jenaGraph);
+        return model;
+    }
+
+    @Override
+    public boolean hasModel(String ontologyURI) {
+        boolean res = tcManager.listMGraphs().contains(new UriRef(ontologyURI));
+        return res;
+    }
+
+    @Override
+    public List<String> listModels() {
+        List<String> modelURIs = new ArrayList<String>();
+        for (UriRef uri : tcManager.listMGraphs()) {
+            modelURIs.add(uri.getUnicodeString());
+        }
+        return modelURIs;
+    }
+
+    @Override
+    public void removeModel(String ontologyURI) {
+        // tcManager.getMGraph(new UriRef(ontologyURI)).clear();
+        tcManager.deleteTripleCollection(new UriRef(ontologyURI));
+    }
+
+    protected void bindTcManager(TcManager tcManager) {
+        this.tcManager = tcManager;
+    }
+
+    protected void unbindTcManager(TcManager tcManager) {
+        synchronized (tcManager) {
+            this.tcManager = null;
+        }
+    }
+}

Propchange: incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/ClerezzaAdaptor.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/ClerezzaStoreSynchronizer.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/ClerezzaStoreSynchronizer.java?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/ClerezzaStoreSynchronizer.java (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/ClerezzaStoreSynchronizer.java Wed Mar 30 13:43:53 2011
@@ -0,0 +1,235 @@
+package org.apache.stanbol.ontologymanager.store.clerezza;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.locks.Lock;
+
+import org.apache.clerezza.rdf.core.MGraph;
+import org.apache.clerezza.rdf.core.UriRef;
+import org.apache.clerezza.rdf.core.access.LockableMGraph;
+import org.apache.clerezza.rdf.core.access.NoSuchEntityException;
+import org.apache.clerezza.rdf.core.access.TcManager;
+import org.apache.clerezza.rdf.core.event.FilterTriple;
+import org.apache.clerezza.rdf.core.event.GraphListener;
+import org.apache.clerezza.rdf.jena.facade.JenaGraph;
+import org.apache.felix.scr.annotations.Activate;
+import org.apache.felix.scr.annotations.Component;
+import org.apache.felix.scr.annotations.Deactivate;
+import org.apache.felix.scr.annotations.Property;
+import org.apache.felix.scr.annotations.Reference;
+import org.apache.felix.scr.annotations.Service;
+import org.apache.stanbol.ontologymanager.store.api.ResourceManager;
+import org.apache.stanbol.ontologymanager.store.api.StoreSynchronizer;
+import org.osgi.service.component.ComponentContext;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import com.hp.hpl.jena.ontology.DatatypeProperty;
+import com.hp.hpl.jena.ontology.Individual;
+import com.hp.hpl.jena.ontology.ObjectProperty;
+import com.hp.hpl.jena.ontology.OntClass;
+import com.hp.hpl.jena.ontology.OntModel;
+import com.hp.hpl.jena.ontology.OntModelSpec;
+import com.hp.hpl.jena.rdf.model.Model;
+import com.hp.hpl.jena.rdf.model.ModelFactory;
+
+/**
+ * Synchronizer for {@link ResourceManager}. Uses a {@link TcManager} to access graphs stored by Clerezza.
+ * 
+ * @author Cihan
+ */
+@Component(factory = "org.apache.stanbol.ontologymanager.store.StoreSynchronizerFactory")
+@Service
+public class ClerezzaStoreSynchronizer implements StoreSynchronizer {
+
+    Logger logger = LoggerFactory.getLogger(ClerezzaStoreSynchronizer.class);
+
+    @Property(name = "org.apache.stanbol.ontologymanager.store.ResourceManager")
+    private ResourceManager resourceManager;
+
+    @Reference
+    private TcManager tcManager;
+
+    private Map<UriRef,GraphListener> listeningMGraph = new HashMap<UriRef,GraphListener>();
+
+    @Activate
+    public void activate(final Map<?,?> properties) {
+        // this.persistenceProvider = (IJenaPersistenceProvider) properties
+        // .get(IJenaPersistenceProvider.class.getName());
+
+        this.resourceManager = (ResourceManager) properties.get(ResourceManager.class.getName());
+
+        // FIXME Is it necessary to listen Immutable Graphs
+
+        // Add Listener to existing MGraphs
+        for (final UriRef graphURI : tcManager.listMGraphs()) {
+            MGraph graph = tcManager.getMGraph(graphURI);
+            registerOntologyIfNotExist(graphURI.getUnicodeString());
+            if (!listeningMGraph.containsKey(graphURI) && !graph.isEmpty()) {
+                GraphListener listener = new SynchronizerGraphListener(this, graphURI.getUnicodeString());
+                graph.addGraphListener(listener, new FilterTriple(null, null, null), 100);
+                listeningMGraph.put(graphURI, listener);
+                logger.info("Added listener to the mgraph  " + graphURI.toString() + " : " + listener);
+            }
+        }
+    }
+
+    @Deactivate
+    public void deactivate(ComponentContext cc) {
+
+        // Synchronize before deactivating
+        synchronizeAll(true);
+
+        // Unregister GraphListeners
+
+        for (UriRef graphUri : listeningMGraph.keySet()) {
+            logger.info("Removing graph listener " + listeningMGraph.get(graphUri) + " on "
+                        + graphUri.toString());
+            tcManager.getMGraph(graphUri).removeGraphListener(listeningMGraph.get(graphUri));
+
+        }
+
+        listeningMGraph.clear();
+    }
+
+    @Override
+    public void clear() {
+        // Unregister GraphListeners
+
+        for (UriRef graphUri : listeningMGraph.keySet()) {
+            logger.info("Removing graph listener " + listeningMGraph.get(graphUri) + " on "
+                        + graphUri.toString());
+            tcManager.getMGraph(graphUri).removeGraphListener(listeningMGraph.get(graphUri));
+        }
+        listeningMGraph.clear();
+    }
+
+    @Override
+    public void synchronizeAll(boolean force) {
+        synchronized (tcManager) {
+            if (force) {
+                for (UriRef graphURI : tcManager.listMGraphs()) {
+                    String ontologyURI = resourceManager.getOntologyFullPath(graphURI.getUnicodeString());
+                    if (ontologyURI == null) {
+                        resourceManager.registerOntology(graphURI.getUnicodeString());
+                    }
+                    synchronizeGraph(graphURI.getUnicodeString());
+                }
+            } else {
+
+                // Process Removed MGraphs
+                List<UriRef> toBedeleted = new ArrayList<UriRef>();
+
+                for (final UriRef graphURI : listeningMGraph.keySet()) {
+                    try {
+                        MGraph graph = tcManager.getMGraph(graphURI);
+                        if (graph.isEmpty()) {
+                            graph.removeGraphListener(listeningMGraph.get(graphURI));
+                            toBedeleted.add(graphURI);
+                        }
+                    } catch (NoSuchEntityException e) {
+                        toBedeleted.add(graphURI);
+                    }
+                }
+
+                for (UriRef graphURI : toBedeleted) {
+                    listeningMGraph.remove(graphURI);
+                    resourceManager.removeOntology(graphURI.getUnicodeString());
+                    logger.info("Stopped Listening MGraph: " + graphURI.getUnicodeString());
+                    logger.info("Stopped Listening MGraph: " + graphURI.getUnicodeString());
+
+                }
+
+                // Process Added MGraphs
+                for (final UriRef graphURI : tcManager.listMGraphs()) {
+                    MGraph graph = tcManager.getMGraph(graphURI);
+                    registerOntologyIfNotExist(graphURI.getUnicodeString());
+                    if (!listeningMGraph.containsKey(graphURI) && !graph.isEmpty()) {
+                        GraphListener listener = new SynchronizerGraphListener(this,
+                                graphURI.getUnicodeString());
+                        graph.addGraphListener(listener, new FilterTriple(null, null, null), 100);
+                        listeningMGraph.put(graphURI, listener);
+                        logger.info("Added listener to the mgraph  " + graphURI.toString() + " : " + listener);
+                    }
+                }
+            }
+        }
+    }
+
+    @Override
+    public void synchronizeGraph(String graphURI) {
+        LockableMGraph mgraph = tcManager.getMGraph(new UriRef(graphURI));
+        Lock lock = mgraph.getLock().readLock();
+        lock.lock();
+        try {
+            JenaGraph jgraph = new JenaGraph(mgraph);
+            Model model = ModelFactory.createModelForGraph(jgraph);
+            GraphSynchronizer es = new GraphSynchronizer(resourceManager, model, graphURI);
+            es.synchronize();
+        } finally {
+            lock.unlock();
+        }
+    }
+
+    protected void synchronizeResourceOnGraph(String graphURI, List<String> resourceURIs) {
+        LockableMGraph graph = tcManager.getMGraph(new UriRef(graphURI));
+        Lock lock = graph.getLock().readLock();
+        lock.lock();
+        try {
+            JenaGraph jgraph = new JenaGraph(graph);
+            OntModel ontology = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM,
+                ModelFactory.createModelForGraph(jgraph));
+            for (String resourceURI : resourceURIs) {
+                OntClass klazz = ontology.getOntClass(resourceURI);
+                ObjectProperty objectProp = ontology.getObjectProperty(resourceURI);
+                DatatypeProperty datatypeProp = ontology.getDatatypeProperty(resourceURI);
+                Individual individual = ontology.getIndividual(resourceURI);
+                if (klazz != null) {
+                    resourceManager.registerClass(graphURI, resourceURI);
+                    logger.info("Added Class " + resourceURI);
+                } else if (objectProp != null) {
+                    resourceManager.registerObjectProperty(graphURI, resourceURI);
+                    logger.info("Added ObjectProperty " + resourceURI);
+                } else if (datatypeProp != null) {
+                    resourceManager.registerDatatypeProperty(graphURI, resourceURI);
+                    logger.info("Added DataProperty " + resourceURI);
+                } else if (individual != null) {
+                    resourceManager.registerIndividual(graphURI, resourceURI);
+                    logger.info("Added Individual" + resourceURI);
+                } else {
+                    // Not found, delete if the resource belongs to this graph
+                    String ontologyURI = resourceManager.resolveOntologyURIFromResourceURI(resourceURI);
+                    if (ontologyURI != null && ontologyURI.equals(graphURI)) {
+                        resourceManager.removeResource(resourceURI);
+                        logger.info("Removed Resource" + resourceURI);
+                    }
+                }
+            }
+        } finally {
+            lock.unlock();
+        }
+    }
+
+    private void registerOntologyIfNotExist(String graphURI) {
+        String ontologyURI = resourceManager.getOntologyFullPath(graphURI);
+        if (ontologyURI == null) {
+            logger.info("Registering ontology: " + graphURI);
+            resourceManager.registerOntology(graphURI);
+            synchronizeGraph(graphURI);
+        }
+
+    }
+
+    protected void bindTcManager(TcManager tcManager) {
+        this.tcManager = tcManager;
+    }
+
+    protected void unbindTcManager(TcManager tcManager) {
+        synchronized (tcManager) {
+            this.tcManager = null;
+        }
+    }
+
+}

Propchange: incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/ClerezzaStoreSynchronizer.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/GraphSynchronizer.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/GraphSynchronizer.java?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/GraphSynchronizer.java (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/GraphSynchronizer.java Wed Mar 30 13:43:53 2011
@@ -0,0 +1,115 @@
+package org.apache.stanbol.ontologymanager.store.clerezza;
+
+import java.util.List;
+
+import org.apache.stanbol.ontologymanager.store.api.ResourceManager;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import com.hp.hpl.jena.ontology.DatatypeProperty;
+import com.hp.hpl.jena.ontology.Individual;
+import com.hp.hpl.jena.ontology.ObjectProperty;
+import com.hp.hpl.jena.ontology.OntClass;
+import com.hp.hpl.jena.ontology.OntModel;
+import com.hp.hpl.jena.ontology.OntModelSpec;
+import com.hp.hpl.jena.rdf.model.Model;
+import com.hp.hpl.jena.rdf.model.ModelFactory;
+
+public class GraphSynchronizer {
+    Logger logger = LoggerFactory.getLogger(GraphSynchronizer.class);
+
+    private ResourceManager resourceManager;
+    private OntModel model;
+    private String graphURI;
+
+    public GraphSynchronizer(ResourceManager resourceManager, Model model, String graphURI) {
+        this.resourceManager = resourceManager;
+        this.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM, model);
+        this.graphURI = graphURI;
+    }
+
+    public void synchronize() {
+        logger.info("Synchronizing: " + graphURI);
+        // Remove ontology so that every resource is unregistered
+        resourceManager.registerOntology(graphURI);
+        synchronizeClasses();
+        synchronizeObjectProperties();
+        synchronizeDataProperties();
+        synchronizeIndividuals();
+
+    }
+
+    private void synchronizeIndividuals() {
+        List<Individual> individuals = model.listIndividuals().toList();
+        for (Individual individual : individuals) {
+            String individualURI = individual.getURI();
+            if (individualURI == null) continue;
+            String ontologyURI = resourceManager.resolveOntologyURIFromResourceURI(individualURI);
+            if (ontologyURI == null) {
+                logger.warn("Resource not found:" + individualURI);
+                resourceManager.registerIndividual(graphURI, individualURI);
+                logger.info("Resource registered:" + individualURI + "on ontology " + graphURI);
+            } else if (graphURI.equals(ontologyURI)) {
+                logger.debug("Resource already registered: " + individualURI);
+            } else {
+                logger.warn("Resource found on another ontology (This case will be handled later)");
+            }
+        }
+    }
+
+    private void synchronizeDataProperties() {
+        List<DatatypeProperty> dataProperties = model.listDatatypeProperties().toList();
+        for (DatatypeProperty dataProperty : dataProperties) {
+            String propertyURI = dataProperty.getURI();
+            if (propertyURI == null) continue;
+            String ontologyURI = resourceManager.resolveOntologyURIFromResourceURI(propertyURI);
+            if (ontologyURI == null) {
+                logger.warn("Resource not found:" + propertyURI);
+                resourceManager.registerDatatypeProperty(graphURI, propertyURI);
+                logger.info("Resource registered:" + propertyURI + "on ontology " + graphURI);
+            } else if (graphURI.equals(ontologyURI)) {
+                logger.debug("Resource already registered: " + propertyURI);
+            } else {
+                logger.warn("Resource found on another ontology (This case will be handled later)");
+            }
+        }
+    }
+
+    private void synchronizeObjectProperties() {
+        List<ObjectProperty> objectProperties = model.listObjectProperties().toList();
+        for (ObjectProperty objectProperty : objectProperties) {
+            String propertyURI = objectProperty.getURI();
+            if (propertyURI == null) continue;
+            String ontologyURI = resourceManager.resolveOntologyURIFromResourceURI(propertyURI);
+            if (ontologyURI == null) {
+                logger.warn("Resource not found:" + propertyURI);
+                resourceManager.registerObjectProperty(graphURI, propertyURI);
+                logger.info("Resource registered:" + propertyURI + "on ontology " + graphURI);
+            } else if (graphURI.equals(ontologyURI)) {
+                logger.debug("Resource already registered: " + propertyURI);
+            } else {
+                logger.warn("Resource found on another ontology (This case will be handled later)");
+            }
+        }
+    }
+
+    private void synchronizeClasses() {
+        List<OntClass> classes = model.listClasses().toList();
+        for (OntClass klass : classes) {
+            String classURI = klass.getURI();
+            if (classURI == null) continue;
+            String ontologyURI = resourceManager.resolveOntologyURIFromResourceURI(classURI);
+            if (ontologyURI == null) {
+                logger.warn("Resource not found:" + classURI);
+                resourceManager.registerClass(graphURI, classURI);
+                logger.info("Resource registered:" + classURI + "on ontology " + graphURI);
+            } else if (graphURI.equals(ontologyURI)) {
+                logger.debug("Resource already registered: " + classURI);
+            } else {
+                logger.warn("Resource found on another ontology (This case will be handled later)");
+            }
+        }
+
+    }
+
+}

Propchange: incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/GraphSynchronizer.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/OWLVocabulary.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/OWLVocabulary.java?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/OWLVocabulary.java (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/OWLVocabulary.java Wed Mar 30 13:43:53 2011
@@ -0,0 +1,15 @@
+package org.apache.stanbol.ontologymanager.store.clerezza;
+
+import org.apache.clerezza.rdf.core.UriRef;
+
+public class OWLVocabulary {
+
+    private static final String RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+    private static final String OWL = "http://www.w3.org/2002/07/owl#";
+
+    public static final UriRef RDF_TYPE = new UriRef(RDF + "type");
+    public static final UriRef OWL_CLASS = new UriRef(OWL + "Class");
+    public static final UriRef OWL_DATATYPE_PROPERTY = new UriRef(OWL + "DatatypeProperty");
+    public static final UriRef OWL_OBJECT_PROPERTY = new UriRef(OWL + "ObjectProperty");
+    public static final UriRef OWL_INDIVIDUAL = new UriRef(OWL + "Individual");
+}

Propchange: incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/OWLVocabulary.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/SynchronizerGraphListener.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/SynchronizerGraphListener.java?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/SynchronizerGraphListener.java (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/SynchronizerGraphListener.java Wed Mar 30 13:43:53 2011
@@ -0,0 +1,48 @@
+package org.apache.stanbol.ontologymanager.store.clerezza;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.clerezza.rdf.core.NonLiteral;
+import org.apache.clerezza.rdf.core.Triple;
+import org.apache.clerezza.rdf.core.UriRef;
+import org.apache.clerezza.rdf.core.event.GraphEvent;
+import org.apache.clerezza.rdf.core.event.GraphListener;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class SynchronizerGraphListener implements GraphListener {
+
+    private static final Logger logger = LoggerFactory.getLogger(SynchronizerGraphListener.class);
+    private ClerezzaStoreSynchronizer synchronizer;
+    private String graphURI;
+
+    public SynchronizerGraphListener(ClerezzaStoreSynchronizer synchronizer, String graphURI) {
+        this.synchronizer = synchronizer;
+        this.graphURI = graphURI;
+    }
+
+    @Override
+    public void graphChanged(List<GraphEvent> events) {
+        List<String> resourceURIs = new ArrayList<String>();
+        for (GraphEvent event : events) {
+            Triple triple = event.getTriple();
+            UriRef predicate = triple.getPredicate();
+            NonLiteral subject = triple.getSubject();
+            if (predicate.equals(OWLVocabulary.RDF_TYPE)) {
+                logger.info("Listened triple change:" + triple);
+                try {
+                    resourceURIs.add(((UriRef) subject).getUnicodeString());
+                } catch (ClassCastException e) {
+                    // Blank node, just skipping
+                    logger.info("Subject " + subject.toString() + " is a blanknode");
+                }
+            }
+        }
+        if (resourceURIs.size() > 0) {
+            logger.info("Listener: " + this.toString() + "URIs:" + resourceURIs);
+            synchronizer.synchronizeResourceOnGraph(graphURI, resourceURIs);
+        }
+    }
+
+}

Propchange: incubator/stanbol/trunk/kres/ontologymanager/store/clerezza/src/main/java/org/apache/stanbol/ontologymanager/store/clerezza/SynchronizerGraphListener.java
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/pom.xml
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/pom.xml?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/pom.xml (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/pom.xml Wed Mar 30 13:43:53 2011
@@ -0,0 +1,84 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<artifactId>org.apache.stanbol.ontologymanager.store.parent</artifactId>
+		<groupId>org.apache.stanbol</groupId>
+		<version>0.9-SNAPSHOT</version>
+		<relativePath>../parent</relativePath>
+	</parent>
+
+	<artifactId>org.semanticweb.owlapi.owllink</artifactId>
+	<version>1.0.2-SNAPSHOT</version>
+	<packaging>bundle</packaging>
+
+	<name>Apache Stanbol Ontology Manager Store Ext - OWLlink OSGI Bundle</name>
+	<description>OWLlink OSGI Bundle should only be used for making requests with an externally established owllink server.</description>
+
+	<repositories>
+		<repository>
+			<id>local-owllink-repo</id>
+			<url>file://localhost/${project.basedir}/src/main/resources/local-maven-repository</url>
+		</repository>
+	</repositories>
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.felix</groupId>
+				<artifactId>maven-bundle-plugin</artifactId>
+				<extensions>true</extensions>
+				<configuration>
+					<instructions>
+						<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+						<Embed-Dependency>jaxp-ri</Embed-Dependency>
+						<Embed-Transitive>true</Embed-Transitive>
+						<Import-Package>
+							!com.sun.java_cup.*,
+							!org.mortbay.http,
+							!org.mortbay.http.handler,
+							!org.mortbay.util,
+							!org.semanticweb.owl.apibinding,
+							!org.semanticweb.owl.inference,
+							!org.semanticweb.owl.model,
+							!org.semanticweb.owl.util,
+							!org.semanticweb.owl.vocab,
+							!org.semanticweb.reasonerfactory.pellet,
+
+							!uk.ac.manchester.cs.owl,
+							*
+							</Import-Package>
+						<Export-Package>org.semanticweb.owlapi.owllink.* </Export-Package>
+					</instructions>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.apache.stanbol</groupId>
+			<artifactId>org.semanticweb.owlapi</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>xerces</groupId>
+			<artifactId>xercesImpl</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.semanticweb.owlapi</groupId>
+			<artifactId>owllink</artifactId>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>com.sun.org.apache</groupId>
+			<artifactId>jaxp-ri</artifactId>
+			<version>1.4</version>
+			<type>jar</type>
+			<scope>compile</scope>
+		</dependency>
+	</dependencies>
+
+</project>

Propchange: incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/src/main/resources/local-maven-repository/org/semanticweb/owlapi/owllink/1.0.2/owllink-1.0.2.jar
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/src/main/resources/local-maven-repository/org/semanticweb/owlapi/owllink/1.0.2/owllink-1.0.2.jar?rev=1086954&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/src/main/resources/local-maven-repository/org/semanticweb/owlapi/owllink/1.0.2/owllink-1.0.2.jar
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/src/main/resources/local-maven-repository/org/semanticweb/owlapi/owllink/1.0.2/owllink-1.0.2.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/src/main/resources/local-maven-repository/org/semanticweb/owlapi/owllink/1.0.2/owllink-1.0.2.pom
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/src/main/resources/local-maven-repository/org/semanticweb/owlapi/owllink/1.0.2/owllink-1.0.2.pom?rev=1086954&view=auto
==============================================================================
--- incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/src/main/resources/local-maven-repository/org/semanticweb/owlapi/owllink/1.0.2/owllink-1.0.2.pom (added)
+++ incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/src/main/resources/local-maven-repository/org/semanticweb/owlapi/owllink/1.0.2/owllink-1.0.2.pom Wed Mar 30 13:43:53 2011
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.semanticweb.owlapi</groupId>
+  <artifactId>owllink</artifactId>
+  <version>1.0.2</version>
+  <description>POM was created from install:install-file</description>
+</project>

Propchange: incubator/stanbol/trunk/kres/ontologymanager/store/ext/org.semanticweb.owlapi.owllink/src/main/resources/local-maven-repository/org/semanticweb/owlapi/owllink/1.0.2/owllink-1.0.2.pom
------------------------------------------------------------------------------
    svn:executable = *