SemanticSearchImplementation
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SemanticSearchImplementation.SpecificApplicationProfile Class Reference

Represents a specific application profile. More...

Inheritance diagram for SemanticSearchImplementation.SpecificApplicationProfile:
SemanticSearchImplementation.ApplicationProfile

Public Member Functions

 SpecificApplicationProfile (RdfClient RDFClient, string applicationProfileId)
 
IDictionary< string, List< Triple > > GetAdditionalTriples (string graphName)
 Executes specific additional rules for a given metadata graph. More...
 
JObject GetLiterals (string label, string instance)
 Creates JSON object for a given label (field) and instance (value) by applying the corresponding literal rules. More...
 
- Public Member Functions inherited from SemanticSearchImplementation.ApplicationProfile
 ApplicationProfile (RdfClient RDFClient)
 
IEnumerable< Triple > GetGeneralAdditionalTriples (string graphName)
 Executes general additional rules for a given metadata graph. More...
 

Private Member Functions

JToken CreateJTokenForESFromList (IEnumerable< string > list)
 Creates a JToken of a list of literals. More...
 
IEnumerable< LiteralRuleGetAllConstructRulesForLiterals (IEnumerable< string > classes)
 Collects all relevant literal rules for the given classes. More...
 

Private Attributes

readonly string _applicationProfileId
 
readonly IDictionary< string, LiteralRule_specificLiteralRules
 
readonly IEnumerable< AdditionalRule_specificAdditionalRules
 

Additional Inherited Members

- Protected Attributes inherited from SemanticSearchImplementation.ApplicationProfile
readonly RdfClient _RDFClient
 
readonly IDictionary< string, LiteralRule_generalLiteralRules
 
readonly IEnumerable< AdditionalRule_generalAdditionalRules
 

Detailed Description

Represents a specific application profile.

Constructor & Destructor Documentation

◆ SpecificApplicationProfile()

SemanticSearchImplementation.SpecificApplicationProfile.SpecificApplicationProfile ( RdfClient  RDFClient,
string  applicationProfileId 
)
inline

Member Function Documentation

◆ CreateJTokenForESFromList()

JToken SemanticSearchImplementation.SpecificApplicationProfile.CreateJTokenForESFromList ( IEnumerable< string >  list)
inlineprivate

Creates a JToken of a list of literals.

Parameters
listA list of literals.
Returns
A JToken which is either a single string or an array.

◆ GetAdditionalTriples()

IDictionary<string, List<Triple> > SemanticSearchImplementation.SpecificApplicationProfile.GetAdditionalTriples ( string  graphName)
inline

Executes specific additional rules for a given metadata graph.

remarks>Depending on the rule, triples can also be created for other metadata graphs.

Parameters
graphNameID of metadata graph
Returns
A dictionary which contains a list of created triples (value) for graphs (key).

◆ GetAllConstructRulesForLiterals()

IEnumerable<LiteralRule> SemanticSearchImplementation.SpecificApplicationProfile.GetAllConstructRulesForLiterals ( IEnumerable< string >  classes)
inlineprivate

Collects all relevant literal rules for the given classes.

Rules of direct classes are used. Rules for parent classes are only considered if no other rules could be found. A specific literal rule overwrites a generl literal rule for the same class.

Parameters
classesA list of classes for which literal rules are searched.
Returns
An enumerator of corresponding literal rules.

◆ GetLiterals()

JObject SemanticSearchImplementation.SpecificApplicationProfile.GetLiterals ( string  label,
string  instance 
)
inline

Creates JSON object for a given label (field) and instance (value) by applying the corresponding literal rules.

Parameters
labelThe label of the field.
instanceAn instance of a specific class for which a literal rule needs to be applied.
Returns
A JSON object containing the created field-value pair.

Member Data Documentation

◆ _applicationProfileId

readonly string SemanticSearchImplementation.SpecificApplicationProfile._applicationProfileId
private

◆ _specificAdditionalRules

readonly IEnumerable<AdditionalRule> SemanticSearchImplementation.SpecificApplicationProfile._specificAdditionalRules
private

◆ _specificLiteralRules

readonly IDictionary<string, LiteralRule> SemanticSearchImplementation.SpecificApplicationProfile._specificLiteralRules
private

The documentation for this class was generated from the following file: