Class LexicographerView
java.lang.Object
it.uniroma2.art.semanticturkey.services.STServiceAdapter
it.uniroma2.art.semanticturkey.services.core.LexicographerView
- All Implemented Interfaces:
NewerNewStyleService
,STService
This class provides services related to the lexicographer view, which provides a simplified, streamlined
visualization of OntoLex-Lemon lexicons.
- Author:
- Manuel Fiorelli
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Field Summary
Fields inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
applicationEventPublisher, cfManager, exptManager, stServiceContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
computeQName
(Map<String, String> ns2prefix, org.eclipse.rdf4j.model.IRI resource) getLexicalEntryView
(org.eclipse.rdf4j.model.Resource lexicalEntry) Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>
getMorphosyntacticProperties
(RDFResourceRole role, org.eclipse.rdf4j.model.Resource lexicon, boolean rootsIncluded) Returns the collection of known morphosyntactic propertiesstatic List<LexicographerView.Component>
parseConstituents
(it.uniroma2.art.semanticturkey.services.core.LexicographerView.Context ctx, org.eclipse.rdf4j.model.Model input, org.eclipse.rdf4j.model.Resource lexicalEntry) protected static PredicateObjectsList
parseMorphosyntacticProperties
(it.uniroma2.art.semanticturkey.services.core.LexicographerView.Context ctx, org.eclipse.rdf4j.model.Model input, org.eclipse.rdf4j.model.Resource form) static <T> List<T>
parseReferences
(it.uniroma2.art.semanticturkey.services.core.LexicographerView.Context ctx, org.eclipse.rdf4j.model.Model input, org.eclipse.rdf4j.model.Resource reifiedRelation, org.eclipse.rdf4j.model.IRI pred, LexicographerView.LexicoSemanticRelation.LexicoSemanticRelationPolicy.Function4<T, it.uniroma2.art.semanticturkey.services.core.LexicographerView.Context, org.eclipse.rdf4j.model.Model, org.eclipse.rdf4j.model.Resource, Set<org.eclipse.rdf4j.model.Resource>> refereneParser) static List<LexicographerView.EntryReference>
parseSubterms
(it.uniroma2.art.semanticturkey.services.core.LexicographerView.Context ctx, org.eclipse.rdf4j.model.Model input, org.eclipse.rdf4j.model.Resource lexicalEntry) static String
simplifiedNatureComputation
(org.eclipse.rdf4j.model.Model input, org.eclipse.rdf4j.model.Resource resource, RDFResourceRole fixedRole) Methods inherited from class it.uniroma2.art.semanticturkey.services.STServiceAdapter
addValue, checkNotLocallyDefined, createQueryBuilder, generateIRI, generateNatureSPARQLSelectPart, generateNatureSPARQLWherePart, generateResourceWithCustomConstructor, getCodaLexModeForSearchFromLexicalizationModel, getDeleteGraph, getGraphFromNature, getInitializedCodaCore, getManagedConnection, getMetadataGraph, getOptionalProject, getPlatformTransactionManager, getProject, getRepository, getRoleFromNature, getUserNamedGraphs, getWorkingGraph, instantiateSearchStrategy, instantiateSearchStrategy, parseReference, publishResourceDeleted, publishResourceDeleted, removeReifiedValue, retrieveResources, shutDownCodaCore, updateTriplePredicate
-
Constructor Details
-
LexicographerView
public LexicographerView()
-
-
Method Details
-
simplifiedNatureComputation
public static String simplifiedNatureComputation(org.eclipse.rdf4j.model.Model input, org.eclipse.rdf4j.model.Resource resource, RDFResourceRole fixedRole) -
computeQName
-
parseMorphosyntacticProperties
protected static PredicateObjectsList parseMorphosyntacticProperties(it.uniroma2.art.semanticturkey.services.core.LexicographerView.Context ctx, org.eclipse.rdf4j.model.Model input, org.eclipse.rdf4j.model.Resource form) -
parseReferences
public static <T> List<T> parseReferences(it.uniroma2.art.semanticturkey.services.core.LexicographerView.Context ctx, org.eclipse.rdf4j.model.Model input, org.eclipse.rdf4j.model.Resource reifiedRelation, org.eclipse.rdf4j.model.IRI pred, LexicographerView.LexicoSemanticRelation.LexicoSemanticRelationPolicy.Function4<T, it.uniroma2.art.semanticturkey.services.core.LexicographerView.Context, org.eclipse.rdf4j.model.Model, org.eclipse.rdf4j.model.Resource, Set<org.eclipse.rdf4j.model.Resource>> refereneParser) -
parseSubterms
public static List<LexicographerView.EntryReference> parseSubterms(it.uniroma2.art.semanticturkey.services.core.LexicographerView.Context ctx, org.eclipse.rdf4j.model.Model input, org.eclipse.rdf4j.model.Resource lexicalEntry) -
parseConstituents
public static List<LexicographerView.Component> parseConstituents(it.uniroma2.art.semanticturkey.services.core.LexicographerView.Context ctx, org.eclipse.rdf4j.model.Model input, org.eclipse.rdf4j.model.Resource lexicalEntry) -
getMorphosyntacticProperties
@STServiceOperation @Read @PreAuthorize("@auth.isAuthorized(\'rdf(property)\', \'R\')") public Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>> getMorphosyntacticProperties(@Optional RDFResourceRole role, @LocallyDefined @Optional org.eclipse.rdf4j.model.Resource lexicon, @Optional(defaultValue="false") boolean rootsIncluded) Returns the collection of known morphosyntactic properties- Parameters:
role
-lexicon
-rootsIncluded
-- Returns:
-
getLexicalEntryView
@STServiceOperation @Read @PreAuthorize("@auth.isAuthorized(\'rdf(property)\', \'R\')") public LexicographerView.LexicalEntry getLexicalEntryView(org.eclipse.rdf4j.model.Resource lexicalEntry)
-