Sara Magliacane avatar Sara Magliacane committed 0236f72

cleaning up some bugs

Comments (0)

Files changed (8)

 </dependency>
             
 <dependency>
-	<groupId>net.semanticmetadata.lire</groupId>
+	<groupId>net.semanticmetadata</groupId>
 	<artifactId>lire</artifactId>
 	<version>1.0</version>
 </dependency>

src/nl/vu/recoprov/CompletePipeline.java

 import nl.vu.recoprov.ProvDMtranslator;
 import nl.vu.recoprov.baseclasses.DependencyGraph;
 import nl.vu.recoprov.signalaggregators.WeightedSumAggregator;
-import nl.vu.recoprov.signaldetectors.DiffSignal;
 import nl.vu.recoprov.signaldetectors.ImageSimilaritySignal;
 import nl.vu.recoprov.signaldetectors.LuceneInverseSimilarity;
 import nl.vu.recoprov.signaldetectors.LuceneSimilaritySignal;
 import nl.vu.recoprov.signaldetectors.MatchTitleInContentSignal;
 import nl.vu.recoprov.signaldetectors.MetadataSimilaritySignal;
 import nl.vu.recoprov.signalfilters.BackwardTemporalFilter;
-import nl.vu.recoprov.signalfilters.TransitiveReductionFilter;
 import nl.vu.recoprov.utils.ConfigurationDefaults;
 import nl.vu.recoprov.utils.ConfigurationReader;
-import nl.vu.recoprov.utils.CustomFileReader;
 
 
 public class CompletePipeline {

src/nl/vu/recoprov/TikaReader.java

 import org.apache.tika.parser.ParseContext;
 import org.apache.tika.parser.Parser;
 import org.apache.tika.parser.AutoDetectParser;
-import org.apache.tika.parser.pdf.PDFParser;
 import org.apache.tika.sax.BodyContentHandler;
-import org.apache.tika.sax.ElementMappingContentHandler;
-import org.apache.tika.sax.WriteOutContentHandler;
-import org.apache.tika.sax.XHTMLContentHandler;
-import org.apache.tika.sax.xpath.Matcher;
-import org.apache.tika.sax.xpath.MatchingContentHandler;
-import org.apache.tika.sax.xpath.XPathParser;
 import org.xml.sax.ContentHandler;
-import org.xml.sax.helpers.DefaultHandler;
 
-import ch.qos.logback.classic.Logger;
-
-import com.sun.xml.internal.org.jvnet.fastinfoset.sax.ExtendedContentHandler;
 
 public class TikaReader {
 

src/nl/vu/recoprov/baseclasses/RecoMetadata.java

 package nl.vu.recoprov.baseclasses;
 
 import java.io.BufferedReader;
-import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
-import java.util.Arrays;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.LinkedHashSet;
-import java.util.List;
 import java.util.Set;
 import java.util.TreeSet;
 
 
 import uk.ac.shef.wit.simmetrics.similaritymetrics.AbstractStringMetric;
 import uk.ac.shef.wit.simmetrics.similaritymetrics.Levenshtein;
-import uk.ac.shef.wit.simmetrics.similaritymetrics.MongeElkan;
-
-
-
 import com.dropbox.client2.RESTUtility;
 import com.dropbox.client2.DropboxAPI.Entry;
 /**

src/nl/vu/recoprov/experiments/CorpusGeneratorBiomed.java

 
 import java.io.File;
 import java.io.FileNotFoundException;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Date;
-import java.util.GregorianCalendar;
 import java.util.HashMap;
 import java.util.Hashtable;
 import java.util.LinkedHashMap;
-import java.util.LinkedList;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.xml.datatype.DatatypeConfigurationException;
-import javax.xml.datatype.DatatypeFactory;
-import javax.xml.datatype.XMLGregorianCalendar;
-import javax.xml.namespace.QName;
-
 import nl.vu.recoprov.CompletePipeline;
-import nl.vu.recoprov.LuceneIndexer;
-import nl.vu.recoprov.TikaReader;
 import nl.vu.recoprov.baseclasses.DependencyGraph;
 import nl.vu.recoprov.baseclasses.DependencyNode;
-import nl.vu.recoprov.baseclasses.DependencyGraph.LabelledEdge;
 import nl.vu.recoprov.signalaggregators.WeightedSumAggregator;
-import nl.vu.recoprov.signaldetectors.MetadataSimilaritySignal;
 import nl.vu.recoprov.utils.ConfigurationDefaults;
 
 import org.openprovenance.prov.dot.ProvToDot;
-import org.openprovenance.prov.xml.Activity;
-import org.openprovenance.prov.xml.ActivityRef;
 import org.openprovenance.prov.xml.Agent;
-import org.openprovenance.prov.xml.AgentRef;
 import org.openprovenance.prov.xml.Document;
 import org.openprovenance.prov.xml.Entity;
 import org.openprovenance.prov.xml.EntityRef;
 import org.openprovenance.prov.xml.ProvFactory;
-import org.openprovenance.prov.xml.SpecializationOf;
-import org.openprovenance.prov.xml.Statement;
-import org.openprovenance.prov.xml.Used;
-import org.openprovenance.prov.xml.WasAssociatedWith;
 import org.openprovenance.prov.xml.WasDerivedFrom;
-import org.openprovenance.prov.xml.WasGeneratedBy;
-//import org.openprovenance.prov.rdf.RdfConstructor;
-
-
-import com.dropbox.client2.exception.DropboxException;
 
 // prov to dot uses the XML representation
 

src/nl/vu/recoprov/signaldetectors/LuceneNgramsSignal.java

 package nl.vu.recoprov.signaldetectors;
 
-import java.io.File;
-import java.util.Map;
-import java.util.TreeMap;
-
-import org.apache.lucene.document.Document;
-import org.apache.lucene.index.IndexReader;
-import org.apache.lucene.index.TermFreqVector;
-import org.apache.lucene.search.IndexSearcher;
-import org.apache.lucene.search.ScoreDoc;
-import org.apache.lucene.store.FSDirectory;
-import org.apache.lucene.store.SimpleFSDirectory;
-
-import nl.vu.recoprov.LuceneIndexer;
 import nl.vu.recoprov.abstractclasses.SignalDetector;
 import nl.vu.recoprov.baseclasses.DependencyGraph;
-import nl.vu.recoprov.baseclasses.DependencyNode;
 
 public class LuceneNgramsSignal extends SignalDetector {
 

src/nl/vu/recoprov/signaldetectors/MatchTitleInContentSignal.java

 package nl.vu.recoprov.signaldetectors;
 
 import java.io.File;
-import java.util.Map;
-import java.util.TreeMap;
-
-import org.apache.lucene.analysis.KeywordAnalyzer;
-import org.apache.lucene.analysis.SimpleAnalyzer;
 import org.apache.lucene.analysis.WhitespaceAnalyzer;
-import org.apache.lucene.analysis.standard.StandardAnalyzer;
 import org.apache.lucene.document.Document;
 import org.apache.lucene.index.IndexReader;
-import org.apache.lucene.index.TermFreqVector;
 import org.apache.lucene.search.IndexSearcher;
 import org.apache.lucene.search.ScoreDoc;
 import org.apache.lucene.store.FSDirectory;
 import org.apache.lucene.store.SimpleFSDirectory;
-import org.apache.lucene.util.Version;
-
-
-import nl.vu.recoprov.CompletePipeline;
-import nl.vu.recoprov.LuceneIndexer;
 import nl.vu.recoprov.abstractclasses.SignalDetector;
 import nl.vu.recoprov.baseclasses.DependencyGraph;
-import nl.vu.recoprov.baseclasses.DependencyNode;
 import nl.vu.recoprov.baseclasses.RecoMetadata;
 import nl.vu.recoprov.utils.ConfigurationDefaults;
-import nl.vu.recoprov.utils.CustomAnalyzer;
 
 public class MatchTitleInContentSignal extends SignalDetector {
 

src/nl/vu/recoprov/signalfilters/BackwardTemporalFilter.java

 
 import java.util.ArrayList;
 import java.util.Date;
-import java.util.HashMap;
-
 import nl.vu.recoprov.abstractclasses.SignalFilterer;
 import nl.vu.recoprov.baseclasses.DependencyGraph;
 import nl.vu.recoprov.baseclasses.DependencyGraph.LabelledEdge;
 import nl.vu.recoprov.baseclasses.DependencyNode;
 import nl.vu.recoprov.baseclasses.RecoMetadata;
-import nl.vu.recoprov.signaldetectors.LuceneSimilaritySignal;
 
 public class BackwardTemporalFilter extends SignalFilterer {
 	
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.