Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit. Searcher class finished and tests passing
- Loading branch information
Brad Seefeld
committed
Nov 28, 2010
0 parents
commit 107bdbd
Showing
7 changed files
with
732 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,9 @@ | ||
.classpath | ||
.project | ||
.settings | ||
*.launch | ||
target/* | ||
*~ | ||
|
||
*.cmd | ||
tomcat/ |
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,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> |
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,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; | ||
} | ||
} |
Oops, something went wrong.