Tabnine Logo
FieldMapper.addMapping
Code IndexAdd Tabnine to your IDE (free)

How to use
addMapping
method
in
org.apache.stanbol.entityhub.servicesapi.mapping.FieldMapper

Best Java code snippets using org.apache.stanbol.entityhub.servicesapi.mapping.FieldMapper.addMapping (Showing top 17 results out of 315)

origin: apache/stanbol

/**
 * Creates an FieldMapper instance by using the {@link DefaultFieldMapperImpl}
 * and the default instance if the {@link ValueConverterFactory} and configure
 * it with {@link FieldMapping}s
 * @param mappings The mappings or <code>null</code> if none
 * @return A new and configured FieldMapper instance.
 */
public static FieldMapper createDefaultFieldMapper(Iterable<FieldMapping> mappings){
  FieldMapper mapper =  new DefaultFieldMapperImpl(ValueConverterFactory.getDefaultInstance());
  if(mappings != null){
    for(FieldMapping mapping : mappings){
      mapper.addMapping(mapping);
    }
  }
  return mapper;
}
origin: apache/stanbol

fieldMapper = new DefaultFieldMapperImpl(ValueConverterFactory.getDefaultInstance());
for(FieldMapping mapping : mappings){
  fieldMapper.addMapping(mapping);
origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

/**
 * Creates an FieldMapper instance by using the {@link DefaultFieldMapperImpl}
 * and the default instance if the {@link ValueConverterFactory} and configure
 * it with {@link FieldMapping}s
 * @param mappings The mappings or <code>null</code> if none
 * @return A new and configured FieldMapper instance.
 */
public static FieldMapper createDefaultFieldMapper(Iterable<FieldMapping> mappings){
  FieldMapper mapper =  new DefaultFieldMapperImpl(ValueConverterFactory.getDefaultInstance());
  if(mappings != null){
    for(FieldMapping mapping : mappings){
      mapper.addMapping(mapping);
    }
  }
  return mapper;
}
origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

public EntityhubImpl(Yard entityhubYard, SiteManager siteManager, 
    EntityhubConfiguration config, NamespacePrefixService nsPrefixService) {
  if(entityhubYard == null){
    throw new IllegalArgumentException("The parsed Yard MUST NOT be NULL!");
  }
  this.entityhubYard = entityhubYard;
  if(siteManager == null){
    throw new IllegalArgumentException("The parsed SiteManager MUST NOT be NULL!");
  }
  this.siteManager = siteManager;
  if(config == null){
    throw new IllegalArgumentException("The parsed EntityhubConfig MUST NOT be NULL!");
  }
  this.config = config;
  log.info(" ... init FieldMappings");
  fieldMapper = new DefaultFieldMapperImpl(ValueConverterFactory.getDefaultInstance());
  for(String mappingString : config.getFieldMappingConfig()){
    FieldMapping mapping = FieldMappingUtils.parseFieldMapping(mappingString,nsPrefixService);
    if(mapping != null){
      log.info("   + mapping: "+mapping);
      fieldMapper.addMapping(mapping);
    }
  }
}
origin: apache/stanbol

public EntityhubImpl(Yard entityhubYard, SiteManager siteManager, 
    EntityhubConfiguration config, NamespacePrefixService nsPrefixService) {
  if(entityhubYard == null){
    throw new IllegalArgumentException("The parsed Yard MUST NOT be NULL!");
  }
  this.entityhubYard = entityhubYard;
  if(siteManager == null){
    throw new IllegalArgumentException("The parsed SiteManager MUST NOT be NULL!");
  }
  this.siteManager = siteManager;
  if(config == null){
    throw new IllegalArgumentException("The parsed EntityhubConfig MUST NOT be NULL!");
  }
  this.config = config;
  log.info(" ... init FieldMappings");
  fieldMapper = new DefaultFieldMapperImpl(ValueConverterFactory.getDefaultInstance());
  for(String mappingString : config.getFieldMappingConfig()){
    FieldMapping mapping = FieldMappingUtils.parseFieldMapping(mappingString,nsPrefixService);
    if(mapping != null){
      log.info("   + mapping: "+mapping);
      fieldMapper.addMapping(mapping);
    }
  }
}
origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

/**
 * Creates an FieldMapper instance by using the {@link DefaultFieldMapperImpl}
 * and the default instance if the {@link ValueConverterFactory} and configure
 * it with {@link FieldMapping}s parsed form the list of string parsed as
 * argument to this method.
 * @param mappings The mappings or <code>null</code> if none
 * @return A new and configured FieldMapper instance.
 */
public static FieldMapper createDefaultFieldMapper(Iterator<String> mappings, NamespacePrefixService nps){
  FieldMapper mapper =  new DefaultFieldMapperImpl(ValueConverterFactory.getDefaultInstance());
  if(mappings != null){
    for(FieldMapping mapping : parseFieldMappings(mappings,nps)){
      mapper.addMapping(mapping);
    }
  }
  return mapper;
}
/**
origin: apache/stanbol

/**
 * Creates an FieldMapper instance by using the {@link DefaultFieldMapperImpl}
 * and the default instance if the {@link ValueConverterFactory} and configure
 * it with {@link FieldMapping}s parsed form the list of string parsed as
 * argument to this method.
 * @param mappings The mappings or <code>null</code> if none
 * @return A new and configured FieldMapper instance.
 */
public static FieldMapper createDefaultFieldMapper(Iterator<String> mappings, NamespacePrefixService nps){
  FieldMapper mapper =  new DefaultFieldMapperImpl(ValueConverterFactory.getDefaultInstance());
  if(mappings != null){
    for(FieldMapping mapping : parseFieldMappings(mappings,nps)){
      mapper.addMapping(mapping);
    }
  }
  return mapper;
}
/**
origin: apache/stanbol

  fieldMapper = new DefaultFieldMapperImpl(ValueConverterFactory.getDefaultInstance());
  for(FieldMapping mapping : mappings){
    fieldMapper.addMapping(mapping);
  fieldMapper = new DefaultFieldMapperImpl(ValueConverterFactory.getDefaultInstance());
fieldMapper.addMapping(new FieldMapping(new TextConstraint(
  (String)null, langs.toArray(new String[langs.size()]))));
origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

if (mapping != null) {
  log.debug("   - add FieldMapping {}", mapping);
  fieldMappings.addMapping(mapping);
origin: apache/stanbol

if (mapping != null) {
  log.debug("   - add FieldMapping {}", mapping);
  fieldMappings.addMapping(mapping);
origin: apache/stanbol

public YardSite(Yard yard, SiteConfiguration config, NamespacePrefixService nsPrefixService) {
  this.yard = yard;
  this.config = config;
  this.nsPrefixService = nsPrefixService;
  this.siteMetadata = extractSiteMetadata(config,InMemoryValueFactory.getInstance());
  //all entities of managed sites are locally cached - so we can add this
  //to the site metadata
  this.siteMetadata.put(RdfResourceEnum.isChached.getUri(), Boolean.TRUE);
  fieldMapper = new DefaultFieldMapperImpl(ValueConverterFactory.getDefaultInstance());
  if(config.getFieldMappings() != null){
    log.debug(" > Initialise configured field mappings");
    for(String configuredMapping : config.getFieldMappings()){
      FieldMapping mapping = FieldMappingUtils.parseFieldMapping(configuredMapping,nsPrefixService);
      if(mapping != null){
        log.debug("   - add FieldMapping {}",mapping);
        fieldMapper.addMapping(mapping);
      }
    }
  }
}

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

if (mapping != null) {
  log.debug("   - add FieldMapping {}", mapping);
  fieldMappings.addMapping(mapping);
origin: apache/stanbol

if (mapping != null) {
  log.debug("   - add FieldMapping {}", mapping);
  fieldMappings.addMapping(mapping);
origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

FieldMapping fieldMapping = FieldMappingUtils.parseFieldMapping(mappingString, nsPrefixService);
if (fieldMapping != null) {
  configuredMappings.addMapping(fieldMapping);
origin: apache/stanbol

FieldMapping fieldMapping = FieldMappingUtils.parseFieldMapping(mappingString, nsPrefixService);
if (fieldMapping != null) {
  configuredMappings.addMapping(fieldMapping);
origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

FieldMapper mapper = this.fieldMapper.clone();
for(FieldMapping siteMapping : siteMapper.getMappings()){
  mapper.addMapping(siteMapping);
origin: apache/stanbol

FieldMapper mapper = this.fieldMapper.clone();
for(FieldMapping siteMapping : siteMapper.getMappings()){
  mapper.addMapping(siteMapping);
org.apache.stanbol.entityhub.servicesapi.mappingFieldMapperaddMapping

Javadoc

Adds a FieldMapping.

Popular methods of FieldMapper

  • applyMappings
    Uses the state of the source representation and the configured mappings to update the state of the t
  • clone
    Creates a clone of this FieldMapper instance with shallow copies of the FieldMapping instances
  • getMappings
    Getter for the unmodifiable collection of all mappings

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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