Tabnine Logo
ModelUtils.getRepresentationInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
getRepresentationInfo
method
in
org.apache.stanbol.entityhub.servicesapi.util.ModelUtils

Best Java code snippets using org.apache.stanbol.entityhub.servicesapi.util.ModelUtils.getRepresentationInfo (Showing top 10 results out of 315)

origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

/**
 * Loads the additional field mappings used by this cache from the yard.
 * This method sets the {@link #baseMapper} field during initialisation.
 * @param yard The yard
 * @param nsPrefixService if present '{prefix}:{localname}' configurations are
 * @return The parsed mappings or <code>null</code> if no found
 * @throws YardException on any Error while reading the {@link Representation}
 * holding the configuration from the {@link Yard}.
 * @throws IllegalArgumentException if <code>null</code> is parsed as {@link Yard}.
 */
protected static FieldMapper loadAdditionalMappings(Yard yard, NamespacePrefixService nsPrefixService) throws YardException {
  if(yard == null){
    throw new IllegalArgumentException("The parsed Yard MUST NOT be NULL!");
  }
  Representation addConfig = yard.getRepresentation(Cache.ADDITIONAL_CONFIGURATION_URI);
  if(addConfig != null){
    FieldMapper mapper = readFieldConfig(yard,addConfig, nsPrefixService);
    if(mapper == null){
      log.warn("Invalid Additinal Configuration: Unable to parse FieldMappings from Field "+Cache.FIELD_MAPPING_CONFIG_FIELD+"-> return NULL (no additional Configuration)");
      if(log.isWarnEnabled()){
        log.warn(ModelUtils.getRepresentationInfo(addConfig));
      }
    }
    return mapper;
  } else {
    return null;
  }
}
/**
origin: apache/stanbol

/**
 * Loads the additional field mappings used by this cache from the yard.
 * This method sets the {@link #baseMapper} field during initialisation.
 * @param yard The yard
 * @param nsPrefixService if present '{prefix}:{localname}' configurations are
 * @return The parsed mappings or <code>null</code> if no found
 * @throws YardException on any Error while reading the {@link Representation}
 * holding the configuration from the {@link Yard}.
 * @throws IllegalArgumentException if <code>null</code> is parsed as {@link Yard}.
 */
protected static FieldMapper loadAdditionalMappings(Yard yard, NamespacePrefixService nsPrefixService) throws YardException {
  if(yard == null){
    throw new IllegalArgumentException("The parsed Yard MUST NOT be NULL!");
  }
  Representation addConfig = yard.getRepresentation(Cache.ADDITIONAL_CONFIGURATION_URI);
  if(addConfig != null){
    FieldMapper mapper = readFieldConfig(yard,addConfig, nsPrefixService);
    if(mapper == null){
      log.warn("Invalid Additinal Configuration: Unable to parse FieldMappings from Field "+Cache.FIELD_MAPPING_CONFIG_FIELD+"-> return NULL (no additional Configuration)");
      if(log.isWarnEnabled()){
        log.warn(ModelUtils.getRepresentationInfo(addConfig));
      }
    }
    return mapper;
  } else {
    return null;
  }
}
/**
origin: apache/stanbol

fieldMapper.applyMappings(rep, clerezzaRep, valueFactory);
  if(log.isTraceEnabled()){
  log.trace("dereferenced via Mappings {}", ModelUtils.getRepresentationInfo(clerezzaRep));
origin: apache/stanbol

log.error(msg);
if(log.isErrorEnabled()){
  log.error(ModelUtils.getRepresentationInfo(baseConfig));
origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

log.error(msg);
if(log.isErrorEnabled()){
  log.error(ModelUtils.getRepresentationInfo(baseConfig));
origin: apache/stanbol

try {
  if(log.isTraceEnabled()){
    log.trace("dereferenced all of {}", ModelUtils.getRepresentationInfo(rep));
origin: org.apache.stanbol/org.apache.stanbol.entityhub.indexing.source.jenatdb

log.info("RDFTerm: \n{}", ModelUtils.getRepresentationInfo(source));
origin: apache/stanbol

log.info("RDFTerm: \n{}", ModelUtils.getRepresentationInfo(source));
origin: apache/stanbol

log.trace("dereferenced via LDPath {}", ModelUtils.getRepresentationInfo(result));
origin: apache/stanbol

if(log.isDebugEnabled()){
  for(Representation tmp : representations.values()){
    log.info(ModelUtils.getRepresentationInfo(tmp));
org.apache.stanbol.entityhub.servicesapi.utilModelUtilsgetRepresentationInfo

Javadoc

String representation of the parsed Representation inteded for DEBUG level loggings.

Popular methods of ModelUtils

  • asCollection
    Copies all elements of the parsed Iterator to a ArrayList. To use other Set implementations that Arr
  • checkValues
    Processes a value parsed as object to the representation. This processing includes: * Removal of nu
  • addToCollection
    Adds the elements of the Iterator to the parsed Collection
  • getNamespaceLocalName
    Splits up a URI in local name and namespace based on the following rules * If URI starts with "u
  • asSet
    Copies all elements of the parsed Iterator to a HashSet. To use other Set implementations that HashS
  • addToSet
    Adds the elements of the Iterator to the parsed Set
  • getAboutRepresentation
    Getter for the id of the Entity the parsed Representationare RdfResourceEnum#aboutRepresentation.
  • randomUUID
    TODO: Maybe we need a better way to generate unique IDs

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Permission (java.security)
    Legacy security code; do not use.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now