Class DocumentSimilarityBase
java.lang.Object
eu.sealsproject.platform.res.tool.impl.AbstractPlugin
de.uni_mannheim.informatik.dws.melt.matching_base.MatcherURL
de.uni_mannheim.informatik.dws.melt.matching_base.MatcherFile
de.uni_mannheim.informatik.dws.melt.matching_jena.MatcherYAAA
de.uni_mannheim.informatik.dws.melt.matching_jena.MatcherYAAAJena
de.uni_mannheim.informatik.dws.melt.matching_ml.python.DocumentSimilarityBase
- All Implemented Interfaces:
IMatcher<org.apache.jena.ontology.OntModel,
,Alignment, Properties> eu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge
,eu.sealsproject.platform.res.tool.api.IPlugin
,eu.sealsproject.platform.res.tool.api.IToolBridge
- Direct Known Subclasses:
Doc2vecModelMatcher
,VectorSpaceModelMatcher
A base class for all matchers which write a csv file where every line
represents a resource with with cell as identifier like URI and
second cell the corresponding tokens (whitespace separated).
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected File
private static final org.slf4j.Logger
protected boolean
protected boolean
protected boolean
private static final String
protected Collection<org.apache.jena.rdf.model.Property>
Fields inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.MatcherFile
FILE_PREFIX, FILE_SUFFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
createCorpusFileIfNecessary
(org.apache.jena.ontology.OntModel source, org.apache.jena.ontology.OntModel target) protected String
getResourceText
(org.apache.jena.ontology.OntResource r) static boolean
protected static boolean
isString
(org.apache.jena.rdf.model.Literal lit) protected String
processText
(String text) protected void
writeResourceText
(org.apache.jena.util.iterator.ExtendedIterator<? extends org.apache.jena.ontology.OntResource> resources, Writer writer) Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_jena.MatcherYAAAJena
getModelSpec, match, match, readOntology
Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_jena.MatcherYAAA
match
Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.MatcherFile
match
Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.MatcherURL
align, align, canExecute, getType
Methods inherited from class eu.sealsproject.platform.res.tool.impl.AbstractPlugin
getId, getVersion, setId, setVersion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.sealsproject.platform.res.tool.api.IPlugin
getId, getVersion
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NEW_LINE
-
corpusFile
-
textProperties
-
addFragment
protected boolean addFragment -
matchClasses
protected boolean matchClasses -
matchProperties
protected boolean matchProperties -
matchIndividuals
protected boolean matchIndividuals
-
-
Constructor Details
-
DocumentSimilarityBase
public DocumentSimilarityBase()
-
-
Method Details
-
createCorpusFileIfNecessary
protected void createCorpusFileIfNecessary(org.apache.jena.ontology.OntModel source, org.apache.jena.ontology.OntModel target) throws IOException - Throws:
IOException
-
writeResourceText
protected void writeResourceText(org.apache.jena.util.iterator.ExtendedIterator<? extends org.apache.jena.ontology.OntResource> resources, Writer writer) throws IOException - Throws:
IOException
-
getResourceText
-
processText
-
isString
protected static boolean isString(org.apache.jena.rdf.model.Literal lit) -
isBlank
-