You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by an...@apache.org on 2012/03/28 15:52:24 UTC
svn commit: r1306327 - in /incubator/stanbol/trunk/rules/adapters: ./ src/
src/license/ src/main/ src/main/java/ src/main/java/org/
src/main/java/org/apache/ src/main/java/org/apache/stanbol/
src/main/java/org/apache/stanbol/rules/ src/main/java/org/ap...
Author: anuzzolese
Date: Wed Mar 28 13:52:22 2012
New Revision: 1306327
URL: http://svn.apache.org/viewvc?rev=1306327&view=rev
Log:
[STANBOL-560] Initial import of the Rule adapters
Added:
incubator/stanbol/trunk/rules/adapters/pom.xml
incubator/stanbol/trunk/rules/adapters/src/
incubator/stanbol/trunk/rules/adapters/src/license/
incubator/stanbol/trunk/rules/adapters/src/license/THIRD-PARTY.properties
incubator/stanbol/trunk/rules/adapters/src/main/
incubator/stanbol/trunk/rules/adapters/src/main/java/
incubator/stanbol/trunk/rules/adapters/src/main/java/org/
incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/
incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/
incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/
incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/
incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AbstractAdaptableAtom.java
incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AbstractRuleAdapter.java
incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AdaptableAtom.java
incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/impl/
incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/impl/RuleAdaptersFactoryImpl.java
incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/impl/RuleAdaptersManagerImpl.java
incubator/stanbol/trunk/rules/adapters/src/main/resources/
incubator/stanbol/trunk/rules/adapters/src/main/resources/META-INF/
incubator/stanbol/trunk/rules/adapters/src/main/resources/OSGI-INF/
incubator/stanbol/trunk/rules/adapters/src/main/resources/OSGI-INF/metatype/
incubator/stanbol/trunk/rules/adapters/src/main/resources/OSGI-INF/metatype/metatype.properties
incubator/stanbol/trunk/rules/adapters/src/test/
incubator/stanbol/trunk/rules/adapters/src/test/java/
incubator/stanbol/trunk/rules/adapters/src/test/java/org/
incubator/stanbol/trunk/rules/adapters/src/test/java/org/apache/
incubator/stanbol/trunk/rules/adapters/src/test/java/org/apache/stanbol/
incubator/stanbol/trunk/rules/adapters/src/test/java/org/apache/stanbol/rules/
incubator/stanbol/trunk/rules/adapters/src/test/java/org/apache/stanbol/rules/adapter/
incubator/stanbol/trunk/rules/adapters/src/test/java/org/apache/stanbol/rules/adapter/impl/
incubator/stanbol/trunk/rules/adapters/src/test/resources/
incubator/stanbol/trunk/rules/adapters/target/
incubator/stanbol/trunk/rules/adapters/target/.plxarc
incubator/stanbol/trunk/rules/adapters/target/classes/
incubator/stanbol/trunk/rules/adapters/target/generated-sources/
incubator/stanbol/trunk/rules/adapters/target/generated-sources/annotations/
incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/
incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/
incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/DEPENDENCIES
incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/LICENSE
incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/NOTICE
incubator/stanbol/trunk/rules/adapters/target/org.apache.stanbol.rules.adapters-0.9.0-incubating-SNAPSHOT-sources.jar (with props)
incubator/stanbol/trunk/rules/adapters/target/org.apache.stanbol.rules.adapters-0.9.0-incubating-SNAPSHOT.jar (with props)
incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/
incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/
incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/metatype/
incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/metatype/metatype.xml
incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/scr-plugin/
incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/scr-plugin/scrinfo.xml
incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/serviceComponents.xml
incubator/stanbol/trunk/rules/adapters/target/surefire/
incubator/stanbol/trunk/rules/adapters/target/test-classes/
incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/
incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/DEPENDENCIES
incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/LICENSE
incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/NOTICE
Modified:
incubator/stanbol/trunk/rules/adapters/ (props changed)
Propchange: incubator/stanbol/trunk/rules/adapters/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Mar 28 13:52:22 2012
@@ -0,0 +1,3 @@
+.project
+.classpath
+.settings
Added: incubator/stanbol/trunk/rules/adapters/pom.xml
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/pom.xml?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/pom.xml (added)
+++ incubator/stanbol/trunk/rules/adapters/pom.xml Wed Mar 28 13:52:22 2012
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
+ license agreements. See the NOTICE file distributed with this work for additional
+ information regarding copyright ownership. The ASF licenses this file to
+ You under the Apache License, Version 2.0 (the "License"); you may not use
+ this file except in compliance with the License. You may obtain a copy of
+ the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
+ by applicable law or agreed to in writing, software distributed under the
+ License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ OF ANY KIND, either express or implied. See the License for the specific
+ language governing permissions and limitations under the License. -->
+<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>
+ <groupId>org.apache.stanbol</groupId>
+ <artifactId>stanbol-parent</artifactId>
+ <version>0.9.0-incubating-SNAPSHOT</version>
+ <relativePath>../../parent</relativePath>
+ </parent>
+
+ <groupId>org.apache.stanbol</groupId>
+ <artifactId>org.apache.stanbol.rules.adapters</artifactId>
+ <packaging>bundle</packaging>
+
+ <name>Apache Stanbol Rules - Adapters</name>
+ <description>
+ The set of functionalities for manipulating
+ inference rules, complete with built-in atoms.
+ </description>
+
+ <inceptionYear>2010</inceptionYear>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-ClassPath>
+ .,
+ META-INF
+ </Bundle-ClassPath>
+ <Export-Package>
+ org.apache.stanbol.rules.adapters.*
+ </Export-Package>
+ <Import-Package>
+ org.slf4j.*,
+ *
+ </Import-Package>
+ <_nouses>true</_nouses>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-scr-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+
+ <!-- OSGi deps -->
+ <dependency>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>org.apache.felix.scr.annotations</artifactId>
+ </dependency>
+
+ <!-- Stanbol deps -->
+ <dependency>
+ <groupId>org.apache.stanbol</groupId>
+ <artifactId>org.apache.stanbol.rules.base</artifactId>
+ </dependency>
+
+ <!-- Testing deps -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+
+ </dependencies>
+
+</project>
Added: incubator/stanbol/trunk/rules/adapters/src/license/THIRD-PARTY.properties
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/src/license/THIRD-PARTY.properties?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/src/license/THIRD-PARTY.properties (added)
+++ incubator/stanbol/trunk/rules/adapters/src/license/THIRD-PARTY.properties Wed Mar 28 13:52:22 2012
@@ -0,0 +1,26 @@
+# Generated by org.codehaus.mojo.license.AddThirdPartyMojo
+#-------------------------------------------------------------------------------
+# Already used licenses in project :
+# - Apache 2
+# - Apache License
+# - BSD
+# - BSD-style license
+# - CDDL 1.1
+# - Common Development and Distribution License (CDDL) v1.0
+# - Common Public License Version 1.0
+# - GPL2 w/ CPE
+# - ICU License
+# - MIT License
+# - The Apache Software License, Version 2.0
+#-------------------------------------------------------------------------------
+# Please fill the missing licenses for dependencies :
+#
+#
+#Wed Feb 15 19:05:24 CET 2012
+asm--asm--3.1=BSD License
+javax.servlet--servlet-api--2.4=Common Development And Distribution License (CDDL), Version 1.0
+org.codehaus.jettison--jettison--1.3=The Apache Software License, Version 2.0
+org.osgi--org.osgi.compendium--4.1.0=The Apache Software License, Version 2.0
+org.osgi--org.osgi.core--4.1.0=The Apache Software License, Version 2.0
+owlapi--owlapi--3.2.3=The Apache Software License, Version 2.0
+xerces--xercesImpl--2.7.1=The Apache Software License, Version 2.0
Added: incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AbstractAdaptableAtom.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AbstractAdaptableAtom.java?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AbstractAdaptableAtom.java (added)
+++ incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AbstractAdaptableAtom.java Wed Mar 28 13:52:22 2012
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.stanbol.rules.adapters;
+
+import org.apache.stanbol.rules.base.api.RuleAdapter;
+import org.apache.stanbol.rules.base.api.RuleAtom;
+import org.apache.stanbol.rules.base.api.RuleAtomCallExeption;
+import org.apache.stanbol.rules.base.api.UnavailableRuleObjectException;
+import org.apache.stanbol.rules.base.api.UnsupportedTypeForExportException;
+
+/**
+ * Abstract class for an {@link AdaptableAtom}.<br/>
+ * This class should be extended by any implementation o an {@link AdaptableAtom} as it override the
+ * <code>setRuleAdapter</code> method providing a general implementation.
+ *
+ * @author anuzzolese
+ *
+ */
+public abstract class AbstractAdaptableAtom implements AdaptableAtom {
+
+ protected RuleAdapter adapter;
+
+ @Override
+ public void setRuleAdapter(RuleAdapter adapter) {
+ this.adapter = adapter;
+ }
+
+ @Override
+ public abstract <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption,
+ UnavailableRuleObjectException,
+ UnsupportedTypeForExportException;
+
+}
Added: incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AbstractRuleAdapter.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AbstractRuleAdapter.java?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AbstractRuleAdapter.java (added)
+++ incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AbstractRuleAdapter.java Wed Mar 28 13:52:22 2012
@@ -0,0 +1,114 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.stanbol.rules.adapters;
+
+import org.apache.stanbol.rules.base.api.Adaptable;
+import org.apache.stanbol.rules.base.api.Recipe;
+import org.apache.stanbol.rules.base.api.Rule;
+import org.apache.stanbol.rules.base.api.RuleAdapter;
+import org.apache.stanbol.rules.base.api.RuleAtom;
+import org.apache.stanbol.rules.base.api.RuleAtomCallExeption;
+import org.apache.stanbol.rules.base.api.UnavailableRuleObjectException;
+import org.apache.stanbol.rules.base.api.UnsupportedTypeForExportException;
+
+/**
+ * Thi abstract class implements the method <code>adaptTo</code>
+ *
+ * and introduced new methods that should be implemented by concrete adapters, i.e.,:
+ * <ul>
+ * <li><code>adaptRecipeTo</code></li>
+ * <li><code>adaptRuleTo</code></li>
+ * <li><code>adaptRuleAtomTo</code></li>
+ * </ul>
+ *
+ * @author anuzzolese
+ *
+ */
+public abstract class AbstractRuleAdapter implements RuleAdapter {
+
+ public <T> T adaptTo(Adaptable adaptable, Class<T> type) throws RuleAtomCallExeption,
+ UnavailableRuleObjectException,
+ UnsupportedTypeForExportException {
+ if (adaptable instanceof Recipe) {
+ return adaptRecipeTo((Recipe) adaptable, type);
+ } else if (adaptable instanceof Rule) {
+ return adaptRuleTo((Rule) adaptable, type);
+ } else if (adaptable instanceof RuleAtom) {
+ return adaptRuleAtomTo((RuleAtom) adaptable, type);
+ } else {
+ throw new UnavailableRuleObjectException("The adaptable class " + adaptable.getClass()
+ + " is not supported by the adapter " + this.getClass());
+ }
+ }
+
+ /**
+ * It allows to adapt a {@link Recipe} object passed as first argument to an instance of the class passed
+ * as second argument.
+ *
+ * @param <T>
+ * @param recipe
+ * {@link Recipe}
+ * @param type
+ * {@link Class}
+ * @return the <code>recipe</code> adapted to {@link Class} <code>type</code>
+ * @throws RuleAtomCallExeption
+ * @throws UnsupportedTypeForExportException
+ * @throws UnavailableRuleObjectException
+ */
+ protected abstract <T> T adaptRecipeTo(Recipe recipe, Class<T> type) throws RuleAtomCallExeption,
+ UnsupportedTypeForExportException,
+ UnavailableRuleObjectException;
+
+ /**
+ *
+ * It allows to adapt a {@link Rule} object passed as first argument to an instance of the class passed as
+ * second argument.
+ *
+ * @param <T>
+ * @param rule
+ * {@link Rule}
+ * @param type
+ * {@link Class}
+ * @return the <code>rule</code> adapted to the {@link Class} <code>type</code>
+ * @throws RuleAtomCallExeption
+ * @throws UnsupportedTypeForExportException
+ * @throws UnavailableRuleObjectException
+ */
+ protected abstract <T> T adaptRuleTo(Rule rule, Class<T> type) throws RuleAtomCallExeption,
+ UnsupportedTypeForExportException,
+ UnavailableRuleObjectException;
+
+ /**
+ *
+ * It allows to adapt a {@link RuleAtom} object passed as first argument to an instance of the class
+ * passed as second argument.
+ *
+ * @param <T>
+ * @param ruleAtom
+ * {@link RuleAtom}
+ * @param type
+ * {@link Class}
+ * @return the <code>ruleAtom</code> adapted to the {@link Class} <code>type</code>
+ * @throws RuleAtomCallExeption
+ * @throws UnsupportedTypeForExportException
+ * @throws UnavailableRuleObjectException
+ */
+ protected abstract <T> T adaptRuleAtomTo(RuleAtom ruleAtom, Class<T> type) throws RuleAtomCallExeption,
+ UnsupportedTypeForExportException,
+ UnavailableRuleObjectException;
+}
Added: incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AdaptableAtom.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AdaptableAtom.java?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AdaptableAtom.java (added)
+++ incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/AdaptableAtom.java Wed Mar 28 13:52:22 2012
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.stanbol.rules.adapters;
+
+import org.apache.stanbol.rules.base.api.RuleAdapter;
+import org.apache.stanbol.rules.base.api.RuleAtom;
+import org.apache.stanbol.rules.base.api.RuleAtomCallExeption;
+import org.apache.stanbol.rules.base.api.UnavailableRuleObjectException;
+import org.apache.stanbol.rules.base.api.UnsupportedTypeForExportException;
+
+/**
+ *
+ * An adaptable atom is any rule atom that the adapters provide for converting Stanbol rules to the
+ * destination format.
+ *
+ * @author anuzzolese
+ *
+ */
+public interface AdaptableAtom {
+
+ /**
+ * It sets the rule adapter.
+ *
+ * @param adapter
+ * the {@link RuleAdapter}
+ */
+ public void setRuleAdapter(RuleAdapter adapter);
+
+ /**
+ *
+ * @param <T>
+ * @param ruleAtom
+ * a {@link RuleAtom}
+ * @return The <code>ruleAtom</code> converted to the class <T>
+ * @throws RuleAtomCallExeption
+ * @throws UnsupportedTypeForExportException
+ * @throws UnavailableRuleObjectException
+ */
+ public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption,
+ UnsupportedTypeForExportException,
+ UnavailableRuleObjectException;
+}
Added: incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/impl/RuleAdaptersFactoryImpl.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/impl/RuleAdaptersFactoryImpl.java?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/impl/RuleAdaptersFactoryImpl.java (added)
+++ incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/impl/RuleAdaptersFactoryImpl.java Wed Mar 28 13:52:22 2012
@@ -0,0 +1,173 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.stanbol.rules.adapters.impl;
+
+import java.io.IOException;
+import java.util.Collections;
+import java.util.Dictionary;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+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.Service;
+import org.apache.stanbol.rules.base.api.RuleAdapter;
+import org.apache.stanbol.rules.base.api.RuleAdaptersFactory;
+import org.apache.stanbol.rules.base.api.UnavailableRuleObjectException;
+import org.osgi.framework.ServiceEvent;
+import org.osgi.framework.ServiceListener;
+import org.osgi.framework.ServiceReference;
+import org.osgi.service.component.ComponentContext;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * A concrete implementation of a {@link RuleAdaptersFactory}.
+ *
+ * @author anuzzolese
+ *
+ */
+@Component(immediate = true, metatype = true)
+@Service(RuleAdaptersFactory.class)
+public class RuleAdaptersFactoryImpl implements RuleAdaptersFactory, ServiceListener {
+
+ private final Logger log = LoggerFactory.getLogger(getClass());
+
+ private Map<Class<?>,RuleAdapter> ruleAdapters;
+
+ private ComponentContext componentContext;
+
+ public RuleAdaptersFactoryImpl() {
+ ruleAdapters = new HashMap<Class<?>,RuleAdapter>();
+ }
+
+ /**
+ * Used to configure an instance within an OSGi container.
+ *
+ * @throws IOException
+ */
+ @SuppressWarnings({"unchecked", "unused"})
+ @Activate
+ protected void activate(ComponentContext context) throws IOException {
+
+ context.getBundleContext().addServiceListener(this);
+
+ this.componentContext = context;
+ log.info("in " + RuleAdaptersFactoryImpl.class + " activate with context " + context);
+ if (context == null) {
+ throw new IllegalStateException("No valid" + ComponentContext.class + " parsed in activate!");
+ }
+ activate((Dictionary<String,Object>) context.getProperties());
+ }
+
+ /**
+ * Should be called within both OSGi and non-OSGi environments.
+ *
+ * @param configuration
+ * @throws IOException
+ */
+ protected void activate(Dictionary<String,Object> configuration) throws IOException {
+
+ log.info("RuleExportServiceManager is active", this);
+ }
+
+ @Deactivate
+ protected void deactivate(ComponentContext context) {
+ log.info("in " + RuleAdaptersFactoryImpl.class + " deactivate with context " + context);
+ }
+
+ @Override
+ public void serviceChanged(ServiceEvent event) {
+ ServiceReference serviceReference = event.getServiceReference();
+
+ Object service = componentContext.getBundleContext().getService(serviceReference);
+
+ if (service instanceof RuleAdapter) {
+ RuleAdapter RuleAdapter = (RuleAdapter) componentContext.getBundleContext().getService(
+ serviceReference);
+
+ switch (event.getType()) {
+ case ServiceEvent.MODIFIED:
+
+ try {
+ removeRuleAdapter(RuleAdapter);
+ log.info("Removed Rule Adapter " + RuleAdapter.getClass().getCanonicalName());
+
+ addRuleAdapter(RuleAdapter);
+ log.info("Added Rule Adapter " + RuleAdapter.getClass().getCanonicalName());
+ } catch (UnavailableRuleObjectException e) {
+ log.error("Unavailable Rule Object " + e.getMessage());
+ }
+ break;
+ case ServiceEvent.REGISTERED:
+ try {
+ addRuleAdapter(RuleAdapter);
+ log.info("Added Rule Adapter " + RuleAdapter.getClass().getCanonicalName());
+ } catch (UnavailableRuleObjectException e) {
+ log.error("Unavailable Rule Object " + e.getMessage());
+ }
+
+ break;
+ case ServiceEvent.UNREGISTERING:
+ try {
+ removeRuleAdapter(RuleAdapter);
+ log.info("Removed Rule Adapter " + RuleAdapter.getClass().getCanonicalName());
+ } catch (UnavailableRuleObjectException e) {
+ log.error("Unavailable Rule Object " + e.getMessage());
+ }
+ break;
+
+ default:
+ break;
+ }
+
+ log.info(ruleAdapters.entrySet().size() + " active rule adapters ");
+ }
+ }
+
+ @Override
+ public List<RuleAdapter> listRuleAdapters() {
+
+ List<RuleAdapter> ruleAdapters = Collections.emptyList();
+ ruleAdapters.addAll(this.ruleAdapters.values());
+ return ruleAdapters;
+
+ }
+
+ @Override
+ public RuleAdapter getRuleAdapter(Class<?> type) throws UnavailableRuleObjectException {
+
+ return ruleAdapters.get(type);
+ }
+
+ @Override
+ public synchronized void addRuleAdapter(RuleAdapter ruleAdapter) throws UnavailableRuleObjectException {
+
+ ruleAdapters.put((Class<?>) ruleAdapter.getExportClass(), ruleAdapter);
+
+ }
+
+ @Override
+ public synchronized void removeRuleAdapter(RuleAdapter ruleAdapter) throws UnavailableRuleObjectException {
+ ruleAdapters.remove(ruleAdapter.getExportClass());
+
+ }
+
+}
Added: incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/impl/RuleAdaptersManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/impl/RuleAdaptersManagerImpl.java?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/impl/RuleAdaptersManagerImpl.java (added)
+++ incubator/stanbol/trunk/rules/adapters/src/main/java/org/apache/stanbol/rules/adapters/impl/RuleAdaptersManagerImpl.java Wed Mar 28 13:52:22 2012
@@ -0,0 +1,116 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.stanbol.rules.adapters.impl;
+
+import java.io.IOException;
+import java.util.Dictionary;
+import java.util.List;
+
+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.rules.base.api.Adaptable;
+import org.apache.stanbol.rules.base.api.RuleAdapter;
+import org.apache.stanbol.rules.base.api.RuleAdapterManager;
+import org.apache.stanbol.rules.base.api.RuleAdaptersFactory;
+import org.apache.stanbol.rules.base.api.UnavailableRuleObjectException;
+import org.osgi.service.component.ComponentContext;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * A concrete implementation of a {@link RuleAdapterManager}.
+ *
+ * @author anuzzolese
+ *
+ */
+
+@Component(immediate = true, metatype = true)
+@Service(RuleAdapterManager.class)
+public class RuleAdaptersManagerImpl implements RuleAdapterManager {
+
+ private final Logger log = LoggerFactory.getLogger(getClass());
+
+ @Reference
+ RuleAdaptersFactory ruleAdaptersFactory;
+
+ public RuleAdaptersManagerImpl() {
+
+ }
+
+ /**
+ * Constructor for non-OSGi environments.
+ */
+ public RuleAdaptersManagerImpl(Dictionary<String,Object> configuration,
+ RuleAdaptersFactory ruleAdaptersFactory) {
+ this.ruleAdaptersFactory = ruleAdaptersFactory;
+
+ try {
+ activate(configuration);
+ } catch (IOException e) {
+ log.error("Unable to access the configuration.", e);
+ }
+ }
+
+ @Override
+ public <AdaptedTo> RuleAdapter getAdapter(Adaptable adaptable, Class<AdaptedTo> adaptedToType) throws UnavailableRuleObjectException {
+
+ return ruleAdaptersFactory.getRuleAdapter(adaptedToType);
+
+ }
+
+ /**
+ * Used to configure an instance within an OSGi container.
+ *
+ * @throws IOException
+ */
+ @SuppressWarnings("unchecked")
+ @Activate
+ protected void activate(ComponentContext context) throws IOException {
+ log.info("in " + RuleAdaptersManagerImpl.class + " activate with context " + context);
+ if (context == null) {
+ throw new IllegalStateException("No valid" + ComponentContext.class + " parsed in activate!");
+ }
+ activate((Dictionary<String,Object>) context.getProperties());
+ }
+
+ /**
+ * Should be called within both OSGi and non-OSGi environments.
+ *
+ * @param configuration
+ * @throws IOException
+ */
+ protected void activate(Dictionary<String,Object> configuration) throws IOException {
+
+ log.info("RuleAdapterManagerImpl is active", this);
+ }
+
+ @Deactivate
+ protected void deactivate(ComponentContext context) {
+ log.info("in " + RuleAdaptersManagerImpl.class + " deactivate with context " + context);
+ }
+
+ @Override
+ public List<RuleAdapter> listRuleAdapters() {
+
+ return ruleAdaptersFactory.listRuleAdapters();
+ }
+
+}
Added: incubator/stanbol/trunk/rules/adapters/src/main/resources/OSGI-INF/metatype/metatype.properties
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/src/main/resources/OSGI-INF/metatype/metatype.properties?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/src/main/resources/OSGI-INF/metatype/metatype.properties (added)
+++ incubator/stanbol/trunk/rules/adapters/src/main/resources/OSGI-INF/metatype/metatype.properties Wed Mar 28 13:52:22 2012
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#===============================================================================
+#Properties defined by the Rule Store
+#===============================================================================
+org.apache.stanbol.rules.manager.changes.RuleStoreImpl.name = Apache Stanbol Rule Store
+org.apache.stanbol.rules.manager.changes.RuleStoreImpl.description = A storage facility for Apache Stanbol rules and recipes.
+
+org.apache.stanbol.rules.base.rule_namespace.name = Rule namespace
+org.apache.stanbol.rules.base.rule_namespace.description = The default namespace of Stanbol rule instances in the rule ontology.
+
+org.apache.stanbol.rules.base.rule_ontology.name = Rule ontology location
+org.apache.stanbol.rules.base.rule_ontology.description = The URL of the ontology containing the default rule set. Can be overridden programmatically.
\ No newline at end of file
Added: incubator/stanbol/trunk/rules/adapters/target/.plxarc
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/target/.plxarc?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/target/.plxarc (added)
+++ incubator/stanbol/trunk/rules/adapters/target/.plxarc Wed Mar 28 13:52:22 2012
@@ -0,0 +1 @@
+maven-shared-archive-resources
\ No newline at end of file
Added: incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/DEPENDENCIES
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/DEPENDENCIES?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/DEPENDENCIES (added)
+++ incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/DEPENDENCIES Wed Mar 28 13:52:22 2012
@@ -0,0 +1,125 @@
+// ------------------------------------------------------------------
+// Transitive dependencies of this project determined from the
+// Apache Maven POM organized by organization.
+//
+// For a list of transitive depencies of this project determined
+// from the Apache Maven POM organized by licenses see the
+// DEPENDENCIES-BY-LICENSE file.
+// ------------------------------------------------------------------
+
+
+From: 'an unknown organization'
+ - JSON.simple (http://code.google.com/p/json-simple/) com.googlecode.json-simple:json-simple:jar:1.1
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - ICU4J (http://icu-project.org/) com.ibm.icu:icu4j:jar:4.8.1.1
+ License: ICU License (http://source.icu-project.org/repos/icu/icu/trunk/license.html)
+ - JavaBeans Activation Framework (JAF) (http://java.sun.com/products/javabeans/jaf/index.jsp) javax.activation:activation:jar:1.1
+ License: Common Development and Distribution License (CDDL) v1.0 (https://glassfish.dev.java.net/public/CDDLv1.0.html)
+ - servlet-api javax.servlet:servlet-api:jar:2.4
+
+ - Jettison (http://codehaus.org/jettison/) org.codehaus.jettison:jettison:bundle:1.3
+
+ - FreeMarker (http://www.freemarker.org) org.freemarker:freemarker:jar:2.3.9
+ License: BSD-style license (http://www.freemarker.org/LICENSE.txt)
+ - org.osgi.compendium org.osgi:org.osgi.compendium:jar:4.1.0
+
+ - org.osgi.core org.osgi:org.osgi.core:jar:4.1.0
+
+ - WYMIWYG Commons Core (http://developer.berlios.de/projects/wymiwyg/) org.wymiwyg:wymiwyg-commons-core:bundle:0.7.5
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - owlapi owlapi:owlapi:jar:3.2.3
+
+ - StAX API (http://stax.codehaus.org/) stax:stax-api:jar:1.0.1
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - xercesImpl xerces:xercesImpl:jar:2.7.1
+
+
+From: 'Apache Software Foundation' (http://www.apache.org)
+ - Apache Log4j (http://logging.apache.org/log4j/1.2/) log4j:log4j:bundle:1.2.16
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'Codehaus' (http://www.codehaus.org/)
+ - Woodstox (http://woodstox.codehaus.org) org.codehaus.woodstox:wstx-asl:jar:3.2.7
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'Hewlett-Packard' (http://www.hp.com/)
+ - Jena IRI (http://jena.sf.net/iri) com.hp.hpl.jena:iri:jar:0.8
+ License: BSD-style license (http://jena.sourceforge.net/iri/license.html)
+ - Jena IRI (http://jena.sf.net/iri) com.hp.hpl.jena:iri:jar:0.8
+ License: BSD-style license (http://jena.sourceforge.net/iri/license.html)
+
+From: 'ObjectWeb' (http://www.objectweb.org/)
+ - ASM Core (http://asm.objectweb.org/asm/) asm:asm:jar:3.1
+
+
+From: 'OpenJena' (http://www.openjena.org/)
+ - ARQ (http://openjena.org/ARQ) com.hp.hpl.jena:arq:jar:2.8.5
+ License: BSD-style license (http://openjena.org/license.html)
+
+From: 'Oracle Corporation' (http://www.oracle.com/)
+ - jersey-core (https://jersey.dev.java.net/jersey-core/) com.sun.jersey:jersey-core:bundle:1.7
+ License: CDDL 1.1 (http://glassfish.java.net/public/CDDL+GPL_1_1.html) License: GPL2 w/ CPE (http://glassfish.java.net/public/CDDL+GPL_1_1.html)
+ - jersey-server (https://jersey.dev.java.net/jersey-server/) com.sun.jersey:jersey-server:bundle:1.7
+ License: CDDL 1.1 (http://glassfish.java.net/public/CDDL+GPL_1_1.html) License: GPL2 w/ CPE (http://glassfish.java.net/public/CDDL+GPL_1_1.html)
+
+From: 'QOS.ch' (http://www.qos.ch)
+ - SLF4J API Module (http://www.slf4j.org) org.slf4j:slf4j-api:jar:1.6.1
+ License: MIT License (http://www.opensource.org/licenses/mit-license.php)
+
+From: 'The Apache Software Foundation' (http://jakarta.apache.org)
+ - Logging (http://jakarta.apache.org/commons/logging/) commons-logging:commons-logging-api:jar:1.1
+ License: The Apache Software License, Version 2.0 (/LICENSE.txt)
+
+From: 'The Apache Software Foundation' (http://www.apache.org/)
+ - Commons Codec (http://commons.apache.org/codec/) commons-codec:commons-codec:jar:1.5
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Commons IO (http://commons.apache.org/io/) commons-io:commons-io:jar:1.4
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Commons Lang (http://commons.apache.org/lang/) commons-lang:commons-lang:jar:2.4
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - SCB Core (http://incubator.apache.org/clerezza/mvn-site/rdf.core/) org.apache.clerezza:rdf.core:bundle:0.12-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - SCB Jena Commons (http://incubator.apache.org/clerezza/mvn-site/rdf.jena.commons/) org.apache.clerezza:rdf.jena.commons:bundle:0.5-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - Jena API on SCB (http://incubator.apache.org/clerezza/mvn-site/rdf.jena.facade/) org.apache.clerezza:rdf.jena.facade:bundle:0.12-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - SCB Jena based Parser (http://incubator.apache.org/clerezza/mvn-site/rdf.jena.parser/) org.apache.clerezza:rdf.jena.parser:bundle:0.10-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - SCB Jena based Serializer (http://incubator.apache.org/clerezza/mvn-site/rdf.jena.serializer/) org.apache.clerezza:rdf.jena.serializer:bundle:0.9-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - SCB Ontologies (http://incubator.apache.org/clerezza/mvn-site/rdf.ontologies/) org.apache.clerezza:rdf.ontologies:bundle:0.11-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - SCB rdf/json Parser and Serializer (http://incubator.apache.org/clerezza/mvn-site/rdf.rdfjson/) org.apache.clerezza:rdf.rdfjson:bundle:0.3-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - Utilities Project (http://incubator.apache.org/clerezza/mvn-site/utils/) org.apache.clerezza:utils:bundle:0.1-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza Ext - Json.simple OSGi Bundle (http://incubator.apache.org/clerezza/mvn-site/org.json.simple/) org.apache.clerezza.ext:org.json.simple:bundle:0.3-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Commons Compress (http://commons.apache.org/compress/) org.apache.commons:commons-compress:jar:1.0
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Annotations for SCR (http://felix.apache.org/org.apache.felix.scr.annotations/) org.apache.felix:org.apache.felix.scr.annotations:jar:1.4.0
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - HttpCore (http://hc.apache.org/httpcomponents-core-ga/) org.apache.httpcomponents:httpcore:jar:4.1
+ License: Apache License (LICENSE.txt)
+ - Lucene Core (http://lucene.apache.org/java/lucene-parent/lucene-core) org.apache.lucene:lucene-core:jar:3.2.0
+ License: Apache 2 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Apache Stanbol JSON-LD API (http://www.apache.org/stanbol-parent/org.apache.stanbol.commons.jsonld/) org.apache.stanbol:org.apache.stanbol.commons.jsonld:bundle:0.9.0-incubating-SNAPSHOT
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Apache Stanbol OWL libraries (http://www.apache.org/stanbol-parent/org.apache.stanbol.commons.owl/) org.apache.stanbol:org.apache.stanbol.commons.owl:bundle:0.9.0-incubating-SNAPSHOT
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Apache Stanbol Commons Web Base (http://www.apache.org/stanbol-parent/org.apache.stanbol.commons.web.base/) org.apache.stanbol:org.apache.stanbol.commons.web.base:bundle:0.9.0-incubating-SNAPSHOT
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Apache Stanbol Rules Services API (http://www.apache.org/stanbol-parent/org.apache.stanbol.rules.base/) org.apache.stanbol:org.apache.stanbol.rules.base:bundle:0.9.0-incubating-SNAPSHOT
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'The Jena Project' (http://www.openjena.org/)
+ - Jena (http://www.openjena.org/) com.hp.hpl.jena:jena:jar:2.6.3
+ License: BSD (http://jena.sourceforge.net/license.html)
+ - Jena (http://www.openjena.org/) com.hp.hpl.jena:jena:jar:2.6.3
+ License: BSD (http://jena.sourceforge.net/license.html)
+ - Jena (http://www.openjena.org/) com.hp.hpl.jena:jena:jar:2.6.3
+ License: BSD (http://jena.sourceforge.net/license.html)
+
+
+
+
Added: incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/LICENSE
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/LICENSE?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/LICENSE (added)
+++ incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/LICENSE Wed Mar 28 13:52:22 2012
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
Added: incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/NOTICE
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/NOTICE?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/NOTICE (added)
+++ incubator/stanbol/trunk/rules/adapters/target/maven-shared-archive-resources/META-INF/NOTICE Wed Mar 28 13:52:22 2012
@@ -0,0 +1,8 @@
+
+Apache Stanbol Rules - Adapters
+Copyright 2010-2012 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+
Added: incubator/stanbol/trunk/rules/adapters/target/org.apache.stanbol.rules.adapters-0.9.0-incubating-SNAPSHOT-sources.jar
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/target/org.apache.stanbol.rules.adapters-0.9.0-incubating-SNAPSHOT-sources.jar?rev=1306327&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stanbol/trunk/rules/adapters/target/org.apache.stanbol.rules.adapters-0.9.0-incubating-SNAPSHOT-sources.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stanbol/trunk/rules/adapters/target/org.apache.stanbol.rules.adapters-0.9.0-incubating-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/target/org.apache.stanbol.rules.adapters-0.9.0-incubating-SNAPSHOT.jar?rev=1306327&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stanbol/trunk/rules/adapters/target/org.apache.stanbol.rules.adapters-0.9.0-incubating-SNAPSHOT.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/metatype/metatype.xml
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/metatype/metatype.xml?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/metatype/metatype.xml (added)
+++ incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/metatype/metatype.xml Wed Mar 28 13:52:22 2012
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metatype:MetaData xmlns:metatype="http://www.osgi.org/xmlns/metatype/v1.0.0" localization="OSGI-INF/metatype/metatype">
+ <OCD id="org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl" name="%org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl.name" description="%org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl.description"/>
+ <OCD id="org.apache.stanbol.rules.adapters.impl.RuleAdaptersManagerImpl" name="%org.apache.stanbol.rules.adapters.impl.RuleAdaptersManagerImpl.name" description="%org.apache.stanbol.rules.adapters.impl.RuleAdaptersManagerImpl.description"/>
+ <Designate pid="org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl">
+ <Object ocdref="org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl"/>
+ </Designate>
+ <Designate pid="org.apache.stanbol.rules.adapters.impl.RuleAdaptersManagerImpl">
+ <Object ocdref="org.apache.stanbol.rules.adapters.impl.RuleAdaptersManagerImpl"/>
+ </Designate>
+</metatype:MetaData>
Added: incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/scr-plugin/scrinfo.xml
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/scr-plugin/scrinfo.xml?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/scr-plugin/scrinfo.xml (added)
+++ incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/scr-plugin/scrinfo.xml Wed Mar 28 13:52:22 2012
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<components xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0">
+ <scr:component enabled="true" immediate="true" name="org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl" activate="activate" deactivate="deactivate">
+ <implementation class="org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl"/>
+ <service servicefactory="false">
+ <provide interface="org.apache.stanbol.rules.base.api.RuleAdaptersFactory"/>
+ </service>
+ <property name="service.vendor" type="String" value="Apache Stanbol (incubating)" private="true"/>
+ <property name="service.pid" value="org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl" private="false"/>
+ </scr:component>
+ <scr:component enabled="true" immediate="true" name="org.apache.stanbol.rules.adapters.impl.RuleAdaptersManagerImpl" activate="activate" deactivate="deactivate">
+ <implementation class="org.apache.stanbol.rules.adapters.impl.RuleAdaptersManagerImpl"/>
+ <service servicefactory="false">
+ <provide interface="org.apache.stanbol.rules.base.api.RuleAdapterManager"/>
+ </service>
+ <property name="service.vendor" type="String" value="Apache Stanbol (incubating)" private="true"/>
+ <property name="service.pid" value="org.apache.stanbol.rules.adapters.impl.RuleAdaptersManagerImpl" private="false"/>
+ <reference name="ruleAdaptersFactory" interface="org.apache.stanbol.rules.base.api.RuleAdaptersFactory" cardinality="1..1" policy="static" bind="bindRuleAdaptersFactory" unbind="unbindRuleAdaptersFactory" checked="true"/>
+ </scr:component>
+</components>
Added: incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/serviceComponents.xml
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/serviceComponents.xml?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/serviceComponents.xml (added)
+++ incubator/stanbol/trunk/rules/adapters/target/scr-plugin-generated/OSGI-INF/serviceComponents.xml Wed Mar 28 13:52:22 2012
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<components xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0">
+ <scr:component enabled="true" immediate="true" name="org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl" activate="activate" deactivate="deactivate">
+ <implementation class="org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl"/>
+ <service servicefactory="false">
+ <provide interface="org.apache.stanbol.rules.base.api.RuleAdaptersFactory"/>
+ </service>
+ <property name="service.vendor" type="String" value="Apache Stanbol (incubating)"/>
+ <property name="service.pid" value="org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl"/>
+ </scr:component>
+ <scr:component enabled="true" immediate="true" name="org.apache.stanbol.rules.adapters.impl.RuleAdaptersManagerImpl" activate="activate" deactivate="deactivate">
+ <implementation class="org.apache.stanbol.rules.adapters.impl.RuleAdaptersManagerImpl"/>
+ <service servicefactory="false">
+ <provide interface="org.apache.stanbol.rules.base.api.RuleAdapterManager"/>
+ </service>
+ <property name="service.vendor" type="String" value="Apache Stanbol (incubating)"/>
+ <property name="service.pid" value="org.apache.stanbol.rules.adapters.impl.RuleAdaptersManagerImpl"/>
+ <reference name="ruleAdaptersFactory" interface="org.apache.stanbol.rules.base.api.RuleAdaptersFactory" cardinality="1..1" policy="static" bind="bindRuleAdaptersFactory" unbind="unbindRuleAdaptersFactory"/>
+ </scr:component>
+</components>
Added: incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/DEPENDENCIES
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/DEPENDENCIES?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/DEPENDENCIES (added)
+++ incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/DEPENDENCIES Wed Mar 28 13:52:22 2012
@@ -0,0 +1,125 @@
+// ------------------------------------------------------------------
+// Transitive dependencies of this project determined from the
+// Apache Maven POM organized by organization.
+//
+// For a list of transitive depencies of this project determined
+// from the Apache Maven POM organized by licenses see the
+// DEPENDENCIES-BY-LICENSE file.
+// ------------------------------------------------------------------
+
+
+From: 'an unknown organization'
+ - JSON.simple (http://code.google.com/p/json-simple/) com.googlecode.json-simple:json-simple:jar:1.1
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - ICU4J (http://icu-project.org/) com.ibm.icu:icu4j:jar:4.8.1.1
+ License: ICU License (http://source.icu-project.org/repos/icu/icu/trunk/license.html)
+ - JavaBeans Activation Framework (JAF) (http://java.sun.com/products/javabeans/jaf/index.jsp) javax.activation:activation:jar:1.1
+ License: Common Development and Distribution License (CDDL) v1.0 (https://glassfish.dev.java.net/public/CDDLv1.0.html)
+ - servlet-api javax.servlet:servlet-api:jar:2.4
+
+ - Jettison (http://codehaus.org/jettison/) org.codehaus.jettison:jettison:bundle:1.3
+
+ - FreeMarker (http://www.freemarker.org) org.freemarker:freemarker:jar:2.3.9
+ License: BSD-style license (http://www.freemarker.org/LICENSE.txt)
+ - org.osgi.compendium org.osgi:org.osgi.compendium:jar:4.1.0
+
+ - org.osgi.core org.osgi:org.osgi.core:jar:4.1.0
+
+ - WYMIWYG Commons Core (http://developer.berlios.de/projects/wymiwyg/) org.wymiwyg:wymiwyg-commons-core:bundle:0.7.5
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - owlapi owlapi:owlapi:jar:3.2.3
+
+ - StAX API (http://stax.codehaus.org/) stax:stax-api:jar:1.0.1
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - xercesImpl xerces:xercesImpl:jar:2.7.1
+
+
+From: 'Apache Software Foundation' (http://www.apache.org)
+ - Apache Log4j (http://logging.apache.org/log4j/1.2/) log4j:log4j:bundle:1.2.16
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'Codehaus' (http://www.codehaus.org/)
+ - Woodstox (http://woodstox.codehaus.org) org.codehaus.woodstox:wstx-asl:jar:3.2.7
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'Hewlett-Packard' (http://www.hp.com/)
+ - Jena IRI (http://jena.sf.net/iri) com.hp.hpl.jena:iri:jar:0.8
+ License: BSD-style license (http://jena.sourceforge.net/iri/license.html)
+ - Jena IRI (http://jena.sf.net/iri) com.hp.hpl.jena:iri:jar:0.8
+ License: BSD-style license (http://jena.sourceforge.net/iri/license.html)
+
+From: 'ObjectWeb' (http://www.objectweb.org/)
+ - ASM Core (http://asm.objectweb.org/asm/) asm:asm:jar:3.1
+
+
+From: 'OpenJena' (http://www.openjena.org/)
+ - ARQ (http://openjena.org/ARQ) com.hp.hpl.jena:arq:jar:2.8.5
+ License: BSD-style license (http://openjena.org/license.html)
+
+From: 'Oracle Corporation' (http://www.oracle.com/)
+ - jersey-core (https://jersey.dev.java.net/jersey-core/) com.sun.jersey:jersey-core:bundle:1.7
+ License: CDDL 1.1 (http://glassfish.java.net/public/CDDL+GPL_1_1.html) License: GPL2 w/ CPE (http://glassfish.java.net/public/CDDL+GPL_1_1.html)
+ - jersey-server (https://jersey.dev.java.net/jersey-server/) com.sun.jersey:jersey-server:bundle:1.7
+ License: CDDL 1.1 (http://glassfish.java.net/public/CDDL+GPL_1_1.html) License: GPL2 w/ CPE (http://glassfish.java.net/public/CDDL+GPL_1_1.html)
+
+From: 'QOS.ch' (http://www.qos.ch)
+ - SLF4J API Module (http://www.slf4j.org) org.slf4j:slf4j-api:jar:1.6.1
+ License: MIT License (http://www.opensource.org/licenses/mit-license.php)
+
+From: 'The Apache Software Foundation' (http://jakarta.apache.org)
+ - Logging (http://jakarta.apache.org/commons/logging/) commons-logging:commons-logging-api:jar:1.1
+ License: The Apache Software License, Version 2.0 (/LICENSE.txt)
+
+From: 'The Apache Software Foundation' (http://www.apache.org/)
+ - Commons Codec (http://commons.apache.org/codec/) commons-codec:commons-codec:jar:1.5
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Commons IO (http://commons.apache.org/io/) commons-io:commons-io:jar:1.4
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Commons Lang (http://commons.apache.org/lang/) commons-lang:commons-lang:jar:2.4
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - SCB Core (http://incubator.apache.org/clerezza/mvn-site/rdf.core/) org.apache.clerezza:rdf.core:bundle:0.12-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - SCB Jena Commons (http://incubator.apache.org/clerezza/mvn-site/rdf.jena.commons/) org.apache.clerezza:rdf.jena.commons:bundle:0.5-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - Jena API on SCB (http://incubator.apache.org/clerezza/mvn-site/rdf.jena.facade/) org.apache.clerezza:rdf.jena.facade:bundle:0.12-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - SCB Jena based Parser (http://incubator.apache.org/clerezza/mvn-site/rdf.jena.parser/) org.apache.clerezza:rdf.jena.parser:bundle:0.10-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - SCB Jena based Serializer (http://incubator.apache.org/clerezza/mvn-site/rdf.jena.serializer/) org.apache.clerezza:rdf.jena.serializer:bundle:0.9-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - SCB Ontologies (http://incubator.apache.org/clerezza/mvn-site/rdf.ontologies/) org.apache.clerezza:rdf.ontologies:bundle:0.11-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - SCB rdf/json Parser and Serializer (http://incubator.apache.org/clerezza/mvn-site/rdf.rdfjson/) org.apache.clerezza:rdf.rdfjson:bundle:0.3-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza - Utilities Project (http://incubator.apache.org/clerezza/mvn-site/utils/) org.apache.clerezza:utils:bundle:0.1-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Clerezza Ext - Json.simple OSGi Bundle (http://incubator.apache.org/clerezza/mvn-site/org.json.simple/) org.apache.clerezza.ext:org.json.simple:bundle:0.3-incubating
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Commons Compress (http://commons.apache.org/compress/) org.apache.commons:commons-compress:jar:1.0
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Annotations for SCR (http://felix.apache.org/org.apache.felix.scr.annotations/) org.apache.felix:org.apache.felix.scr.annotations:jar:1.4.0
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - HttpCore (http://hc.apache.org/httpcomponents-core-ga/) org.apache.httpcomponents:httpcore:jar:4.1
+ License: Apache License (LICENSE.txt)
+ - Lucene Core (http://lucene.apache.org/java/lucene-parent/lucene-core) org.apache.lucene:lucene-core:jar:3.2.0
+ License: Apache 2 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Apache Stanbol JSON-LD API (http://www.apache.org/stanbol-parent/org.apache.stanbol.commons.jsonld/) org.apache.stanbol:org.apache.stanbol.commons.jsonld:bundle:0.9.0-incubating-SNAPSHOT
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Apache Stanbol OWL libraries (http://www.apache.org/stanbol-parent/org.apache.stanbol.commons.owl/) org.apache.stanbol:org.apache.stanbol.commons.owl:bundle:0.9.0-incubating-SNAPSHOT
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Apache Stanbol Commons Web Base (http://www.apache.org/stanbol-parent/org.apache.stanbol.commons.web.base/) org.apache.stanbol:org.apache.stanbol.commons.web.base:bundle:0.9.0-incubating-SNAPSHOT
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Apache Stanbol Rules Services API (http://www.apache.org/stanbol-parent/org.apache.stanbol.rules.base/) org.apache.stanbol:org.apache.stanbol.rules.base:bundle:0.9.0-incubating-SNAPSHOT
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'The Jena Project' (http://www.openjena.org/)
+ - Jena (http://www.openjena.org/) com.hp.hpl.jena:jena:jar:2.6.3
+ License: BSD (http://jena.sourceforge.net/license.html)
+ - Jena (http://www.openjena.org/) com.hp.hpl.jena:jena:jar:2.6.3
+ License: BSD (http://jena.sourceforge.net/license.html)
+ - Jena (http://www.openjena.org/) com.hp.hpl.jena:jena:jar:2.6.3
+ License: BSD (http://jena.sourceforge.net/license.html)
+
+
+
+
Added: incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/LICENSE
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/LICENSE?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/LICENSE (added)
+++ incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/LICENSE Wed Mar 28 13:52:22 2012
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
Added: incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/NOTICE
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/NOTICE?rev=1306327&view=auto
==============================================================================
--- incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/NOTICE (added)
+++ incubator/stanbol/trunk/rules/adapters/target/test-classes/META-INF/NOTICE Wed Mar 28 13:52:22 2012
@@ -0,0 +1,8 @@
+
+Apache Stanbol Rules - Adapters
+Copyright 2010-2012 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+