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, watch
cdl, 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, setInput
getToolName, getToolVersion, getToolVersion, setCountDownLatch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getToolName, getToolVersion, setCountDownLatch
protected 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
IOException
public org.apache.lucene.search.IndexSearcher openIndexSearcher() throws IOException
IOException
public Set<String> getSupportedBoaRelations(String domain, String range)
sType
- subject typeoType
- object typepublic Map<String,BoaPattern> processSearch(String p, int maxPatterns) throws IOException
p
- IOException
protected Set<Relation> _extract(String text, List<Entity> entities)
_extract
in class AbstractRE
text
- 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.