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
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Fileprivate static final org.slf4j.Loggerprotected booleanprotected booleanprotected booleanprivate static final Stringprotected 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateCorpusFileIfNecessary(org.apache.jena.ontology.OntModel source, org.apache.jena.ontology.OntModel target) protected StringgetResourceText(org.apache.jena.ontology.OntResource r) static booleanprotected static booleanisString(org.apache.jena.rdf.model.Literal lit) protected StringprocessText(String text) protected voidwriteResourceText(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, readOntologyMethods inherited from class de.uni_mannheim.informatik.dws.melt.matching_jena.MatcherYAAA
matchMethods inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.MatcherFile
matchMethods inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.MatcherURL
align, align, canExecute, getTypeMethods inherited from class eu.sealsproject.platform.res.tool.impl.AbstractPlugin
getId, getVersion, setId, setVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-