Skip to content

Commit

Permalink
Initial commit. Searcher class finished and tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Seefeld committed Nov 28, 2010
0 parents commit 107bdbd
Show file tree
Hide file tree
Showing 7 changed files with 732 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
@@ -0,0 +1,9 @@
.classpath
.project
.settings
*.launch
target/*
*~

*.cmd
tomcat/
64 changes: 64 additions & 0 deletions pom.xml
@@ -0,0 +1,64 @@
<?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>edu.uw.bothell</groupId>
<artifactId>rdf</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>

<properties>
<jrdf.version>0.5.6.1</jrdf.version>
<junit.version>4.5</junit.version>
<log4j.version>1.2.16</log4j.version>

<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>org.jrdf</groupId>
<artifactId>jrdf</artifactId>
<version>${jrdf.version}</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<!-- Java compiler version -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>

<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</build>
</project>
59 changes: 59 additions & 0 deletions src/main/java/edu/uw/bothell/rdf/beans/RdfBean.java
@@ -0,0 +1,59 @@
package edu.uw.bothell.rdf.beans;

import java.util.ArrayList;
import java.util.List;

/**
* RdfBean.
*/
public class RdfBean {

protected String object;
protected String predicate;
protected String subject;
protected List<RdfBean> tags;

/**
* Constructor.
*
* @param newObject
* @param newPredicate
* @param newSubject
*/
public RdfBean(String object, String predicate, String subject) {
super();

this.object = object;
this.predicate = predicate;
this.subject = subject;
tags = new ArrayList<RdfBean>();
}

/**
* @return the object
*/
public String getObject() {
return object;
}

/**
* @return the predicate
*/
public String getPredicate() {
return predicate;
}

/**
* @return the subject
*/
public String getSubject() {
return subject;
}

/**
* @return the tags
*/
public List<RdfBean> getTags() {
return tags;
}
}

0 comments on commit 107bdbd

Please sign in to comment.