Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial version, still not working...
- Loading branch information
Showing
50 changed files
with
2,288 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<classpath> | ||
<classpathentry kind="src" path="src/test/java" including="**/*.java"/> | ||
<classpathentry kind="src" path="src/test/resources" excluding="**/*.java"/> | ||
<classpathentry kind="src" path="src/main/java" including="**/*.java"/> | ||
<classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/> | ||
<classpathentry kind="output" path="target/classes-eclipse"/> | ||
<classpathentry kind="var" path="M2_REPO/com/hp/hpl/jena/arq/2.8.5/arq-2.8.5.jar" sourcepath="M2_REPO/com/hp/hpl/jena/arq/2.8.5/arq-2.8.5-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/com/hp/hpl/jena/arq/2.8.5/arq-2.8.5-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/com/hp/hpl/jena/arq/2.8.5/arq-2.8.5-test-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/com/hp/hpl/jena/arq/2.8.5/arq-2.8.5-tests.jar" sourcepath="M2_REPO/com/hp/hpl/jena/arq/2.8.5/arq-2.8.5-test-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/org/elasticsearch/elasticsearch/0.11.0/elasticsearch-0.11.0.jar" sourcepath="M2_REPO/org/elasticsearch/elasticsearch/0.11.0/elasticsearch-0.11.0-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/com/ibm/icu/icu4j/3.4.4/icu4j-3.4.4.jar" sourcepath="M2_REPO/com/ibm/icu/icu4j/3.4.4/icu4j-3.4.4-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/com/hp/hpl/jena/iri/0.8/iri-0.8.jar" sourcepath="M2_REPO/com/hp/hpl/jena/iri/0.8/iri-0.8-sources.jar"> | ||
<attributes> | ||
<attribute value="jar:file:/home/castagna/.m2/repository/com/hp/hpl/jena/iri/0.8/iri-0.8-javadoc.jar!/" name="javadoc_location"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="var" path="M2_REPO/com/hp/hpl/jena/iri/0.8/iri-0.8-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/com/hp/hpl/jena/jena/2.6.3/jena-2.6.3.jar" sourcepath="M2_REPO/com/hp/hpl/jena/jena/2.6.3/jena-2.6.3-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/com/hp/hpl/jena/jena/2.6.3/jena-2.6.3-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/com/hp/hpl/jena/jena/2.6.3/jena-2.6.3-test-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/junit/junit/4.8.1/junit-4.8.1.jar" sourcepath="M2_REPO/junit/junit/4.8.1/junit-4.8.1-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.16/log4j-1.2.16.jar" sourcepath="M2_REPO/log4j/log4j/1.2.16/log4j-1.2.16-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/org/apache/lucene/lucene-analyzers/3.0.2/lucene-analyzers-3.0.2.jar" sourcepath="M2_REPO/org/apache/lucene/lucene-analyzers/3.0.2/lucene-analyzers-3.0.2-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/org/apache/lucene/lucene-core/3.0.2/lucene-core-3.0.2.jar" sourcepath="M2_REPO/org/apache/lucene/lucene-core/3.0.2/lucene-core-3.0.2-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/org/apache/lucene/lucene-fast-vector-highlighter/3.0.2/lucene-fast-vector-highlighter-3.0.2.jar" sourcepath="M2_REPO/org/apache/lucene/lucene-fast-vector-highlighter/3.0.2/lucene-fast-vector-highlighter-3.0.2-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/org/apache/lucene/lucene-queries/3.0.2/lucene-queries-3.0.2.jar" sourcepath="M2_REPO/org/apache/lucene/lucene-queries/3.0.2/lucene-queries-3.0.2-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar" sourcepath="M2_REPO/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/stax/stax-api/1.0.1/stax-api-1.0.1.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/com/hp/hpl/jena/tdb/0.8.7/tdb-0.8.7.jar" sourcepath="M2_REPO/com/hp/hpl/jena/tdb/0.8.7/tdb-0.8.7-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/org/codehaus/woodstox/wstx-asl/3.2.9/wstx-asl-3.2.9.jar" sourcepath="M2_REPO/org/codehaus/woodstox/wstx-asl/3.2.9/wstx-asl-3.2.9-sources.jar"/> | ||
<classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.jar"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
target | ||
work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<projectDescription> | ||
<name>sarq</name> | ||
<comment>EARQ = ElasticSearch + ARQ (Free Text Indexing for SPARQL (via ARQ property functions) using a ElasticSearch (and Lucene))</comment> | ||
<projects/> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#Fri Oct 08 13:17:42 BST 2010 | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.source=1.6 | ||
org.eclipse.jdt.core.compiler.compliance=1.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,287 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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> | ||
|
||
<groupId>org.openjena</groupId> | ||
<artifactId>sarq</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>EARQ</name> | ||
<description>EARQ = ElasticSearch + ARQ (Free Text Indexing for SPARQL (via ARQ property functions) using a ElasticSearch (and Lucene))</description> | ||
<url>http://github.com/castagna/EARQ</url> | ||
<inceptionYear>2010</inceptionYear> | ||
|
||
<licenses> | ||
<license> | ||
<name>The Apache Software License, Version 2.0</name> | ||
<url>LICENSE.txt</url> | ||
</license> | ||
</licenses> | ||
|
||
<organization> | ||
<name>Talis Systems Ltd.</name> | ||
<url>http://www.talis.com/</url> | ||
</organization> | ||
|
||
<scm> | ||
<connection>scm:git:git://github.com/castagna/EARQ.git</connection> | ||
<url>http://github.com/castagna/EARQ</url> | ||
</scm> | ||
|
||
<properties> | ||
<arq.version>2.8.5</arq.version> | ||
<tdb.version>0.8.7</tdb.version> | ||
<elasticsearch.version>0.11.0</elasticsearch.version> | ||
<jdk.version>1.6</jdk.version> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>com.hp.hpl.jena</groupId> | ||
<artifactId>arq</artifactId> | ||
<version>${arq.version}</version> | ||
<exclusions> | ||
<!-- ElasticSearch has a more up-to-date version --> | ||
<exclusion> | ||
<groupId>org.apache.lucene</groupId> | ||
<artifactId>lucene-core</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.elasticsearch</groupId> | ||
<artifactId>elasticsearch</artifactId> | ||
<version>${elasticsearch.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
<version>1.6.1</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-log4j12</artifactId> | ||
<version>1.6.1</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.8.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.hp.hpl.jena</groupId> | ||
<artifactId>tdb</artifactId> | ||
<version>${tdb.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.hp.hpl.jena</groupId> | ||
<artifactId>arq</artifactId> | ||
<version>${arq.version}</version> | ||
<type>test-jar</type> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<build> | ||
|
||
<plugins> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<source>${jdk.version}</source> | ||
<target>${jdk.version}</target> | ||
<encoding>${project.build.sourceEncoding}</encoding> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<configuration> | ||
<includes> | ||
<include>org/openjena/earq/TS_EARQ.java</include> | ||
</includes> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>2.1.2</version> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>jar-no-fork</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>attach-javadocs</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<version>true</version> | ||
<show>public</show> | ||
<quiet>true</quiet> | ||
<encoding>${project.build.sourceEncoding}</encoding> | ||
<windowtitle>${project.name} ${project.version}</windowtitle> | ||
<doctitle>${project.name} ${project.version}</doctitle> | ||
<!-- Exclude the implementation --> | ||
<includePackageNames>org.openjena.query.earq</includePackageNames> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-eclipse-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>generate-eclipse</id> | ||
<phase>initialize</phase> | ||
<goals> | ||
<goal>eclipse</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<buildOutputDirectory>${project.build.directory}/classes-eclipse</buildOutputDirectory> | ||
<downloadSources>true</downloadSources> | ||
<downloadJavadocs>false</downloadJavadocs> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<configuration> | ||
<remoteTagging>true</remoteTagging> | ||
<preparationGoals>clean install</preparationGoals> | ||
<autoVersionSubmodules>true</autoVersionSubmodules> | ||
</configuration> | ||
</plugin> | ||
|
||
</plugins> | ||
|
||
</build> | ||
|
||
<distributionManagement> | ||
<repository> | ||
<id>talis-oss-releases</id> | ||
<url>http://oss.talisplatform.com/content/repositories/talis-releases</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>talis-oss-snapshots</id> | ||
<url>http://oss.talisplatform.com/content/repositories/talis-snapshots</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
|
||
<developers> | ||
<developer> | ||
<id>pc</id> | ||
<name>Paolo Castagna</name> | ||
<organization>Talis Systems Ltd.</organization> | ||
<organizationUrl>http://www.talis.com/</organizationUrl> | ||
<roles> | ||
<role>developer</role> | ||
</roles> | ||
<timezone>+1</timezone> | ||
</developer> | ||
</developers> | ||
|
||
<repositories> | ||
<repository> | ||
<id>sonatype-releases</id> | ||
<url>http://oss.sonatype.org/content/repositories/releases</url> | ||
</repository> | ||
<repository> | ||
<id>sonatype-snapshots</id> | ||
<url>http://oss.sonatype.org/content/repositories/snapshots</url> | ||
</repository> | ||
</repositories> | ||
|
||
|
||
<reporting> | ||
|
||
<outputDirectory>${project.build.directory}/site</outputDirectory> | ||
|
||
<plugins> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-report-plugin</artifactId> | ||
<configuration> | ||
<outputDirectory>${project.basedir}/target/surefire-reports-html</outputDirectory> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>cobertura-maven-plugin</artifactId> | ||
<configuration> | ||
<instrumentation> | ||
<ignores> | ||
<ignore>org.slf4j.*</ignore> | ||
</ignores> | ||
</instrumentation> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-checkstyle-plugin</artifactId> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jxr-plugin</artifactId> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>findbugs-maven-plugin</artifactId> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-pmd-plugin</artifactId> | ||
<version>2.4</version> | ||
<configuration> | ||
<linkXref>true</linkXref> | ||
<sourceEncoding>${project.build.sourceEncoding}</sourceEncoding> | ||
<minimumTokens>100</minimumTokens> | ||
<targetJdk>${jdk.version}</targetJdk> | ||
<failOnViolation>false</failOnViolation> | ||
</configuration> | ||
</plugin> | ||
|
||
</plugins> | ||
|
||
</reporting> | ||
|
||
</project> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.openjena.earq; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
import java.util.Set; | ||
|
||
public class Document { | ||
|
||
private Map<String, String> fields = new HashMap<String, String>(); | ||
|
||
public void set (String name, String value) { | ||
fields.put(name, value); | ||
} | ||
|
||
public String get (String name) { | ||
return fields.get(name); | ||
} | ||
|
||
public Set<String> getNames() { | ||
return fields.keySet(); | ||
} | ||
|
||
} |
Oops, something went wrong.