
public abstract class ABoaIndex extends AbstractRE
en:
http://dbpedia.org/ontology/author
http://dbpedia.org/ontology/award
http://dbpedia.org/ontology/birthPlace
http://dbpedia.org/ontology/deathPlace
http://dbpedia.org/ontology/foundationPlace <---
http://dbpedia.org/ontology/leaderName
http://dbpedia.org/ontology/spouse
http://dbpedia.org/ontology/starring
http://dbpedia.org/ontology/subsidiary
http://dbpedia.org/ontology/team
de
http://dbpedia.org/ontology/author
http://dbpedia.org/ontology/award
http://dbpedia.org/ontology/birthPlace
http://dbpedia.org/ontology/deathPlace
http://dbpedia.org/ontology/leaderName
http://dbpedia.org/ontology/spouse
http://dbpedia.org/ontology/starring
http://dbpedia.org/ontology/subsidiary
http://dbpedia.org/ontology/team
fr
http://dbpedia.org/ontology/author
http://dbpedia.org/ontology/award
http://dbpedia.org/ontology/birthPlace
http://dbpedia.org/ontology/deathPlace
http://dbpedia.org/ontology/foundationPlace
http://dbpedia.org/ontology/leaderName
http://dbpedia.org/ontology/spouse
http://dbpedia.org/ontology/starring
http://dbpedia.org/ontology/subsidiary
http://dbpedia.org/ontology/team
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.lucene.store.Directory |
dir |
protected org.apache.lucene.index.IndexReader |
indexReader |
protected org.apache.lucene.search.IndexSearcher |
indexSearcher |
protected String |
lang |
protected String |
luceneIndexFolder |
dbpediaOntology, entities, input, relations, watchcdl, cfgManager, LOG, versions| Modifier and Type | Method and Description |
|---|---|
protected Set<Relation> |
_extract(String text,
List<Entity> entities) |
void |
closeIndexSearcher() |
protected void |
createSupportedBoaRelations() |
Map<String,BoaPattern> |
getPattern(String uri)
Gets boa pattern from index.
|
Map<String,BoaPattern> |
getPattern(String uri,
int maxpattern)
Gets boa pattern from index.
|
Set<String> |
getSupportedBoaRelations(String domain,
String range)
Gets all possible relations for the type pair combination.
|
org.apache.lucene.search.IndexSearcher |
openIndexSearcher() |
Map<String,BoaPattern> |
processSearch(String p,
int maxPatterns) |
checkDomainRange, extract, getResults, mapFoxTypesToDBpediaTypes, run, sentenceToEntities, setEntityIDs, setInputgetToolName, getToolVersion, getToolVersion, setCountDownLatchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetToolName, getToolVersion, setCountDownLatchprotected String luceneIndexFolder
protected org.apache.lucene.index.IndexReader indexReader
protected org.apache.lucene.search.IndexSearcher indexSearcher
protected org.apache.lucene.store.Directory dir
protected String lang
public ABoaIndex(String lang)
file - boa indexpublic void closeIndexSearcher()
throws IOException
IOExceptionpublic org.apache.lucene.search.IndexSearcher openIndexSearcher()
throws IOException
IOExceptionpublic Set<String> getSupportedBoaRelations(String domain, String range)
sType - subject typeoType - object typepublic Map<String,BoaPattern> processSearch(String p, int maxPatterns) throws IOException
p - IOExceptionprotected Set<Relation> _extract(String text, List<Entity> entities)
_extract in class AbstractREtext - entities - public Map<String,BoaPattern> getPattern(String uri)
uri - public Map<String,BoaPattern> getPattern(String uri, int maxpattern)
uri - maxpattern - protected void createSupportedBoaRelations()
Copyright © 2024. All rights reserved.