Tabnine Logo
IDGenerator
Code IndexAdd Tabnine to your IDE (free)

How to use
IDGenerator
in
it.unibz.inf.ontop.utils

Best Java code snippets using it.unibz.inf.ontop.utils.IDGenerator (Showing top 12 results out of 315)

origin: ontop/ontop

protected AbstractSQLPPTriplesMap(ImmutableList<TargetAtom> targetAtoms, OBDASQLQuery sqlQuery) {
  this(targetAtoms, sqlQuery,IDGenerator.getNextUniqueID("MAPID-"));
}
origin: it.unibz.inf.ontop/ontop-mapping-sql-core

protected AbstractSQLPPTriplesMap(ImmutableList<ImmutableFunctionalTerm> targetAtoms, OBDASQLQuery sqlQuery) {
  this(targetAtoms, sqlQuery,IDGenerator.getNextUniqueID("MAPID-"));
}
origin: it.unibz.inf.ontop/ontop-obdalib-core

@Override
public OBDAMappingAxiom getRDBMSMappingAxiom(OBDASQLQuery sourceQuery, List<Function> targetQuery) {
  String id = IDGenerator.getNextUniqueID("MAPID-");
  return getRDBMSMappingAxiom(id, sourceQuery, targetQuery);
}
origin: ontop/ontop

private void addMapping() {
  String id = IDGenerator.getNextUniqueID("MAPID-");
  JDialog dialog = new JDialog();
  dialog.setTitle("New Mapping");
  dialog.setModal(true);
  NewMappingDialogPanel panel = new NewMappingDialogPanel(apic, dialog, selectedSource);
  panel.setID(id);
  dialog.setContentPane(panel);
  dialog.setSize(600, 500);
  dialog.setLocationRelativeTo(this);
  dialog.setVisible(true);
}

origin: ontop/ontop

/**
 * Beware: immutable class!
 * <p>
 * Recommended constructor.
 * <p>
 * Changing the Properties object afterwards will not have any effect
 * on this OntopSQLCoreSettings object.
 *
 * @param userProperties
 */
protected OntopSQLCoreSettingsImpl(Properties userProperties) {
  super(userProperties);
  jdbcUrl = getRequiredProperty(OntopSQLCoreSettings.JDBC_URL);
  jdbcDriver = getProperty(OntopSQLCoreSettings.JDBC_DRIVER);
  jdbcName = getProperty(OntopSQLCoreSettings.JDBC_NAME)
      .orElseGet(() -> IDGenerator.getNextUniqueID(DB_PREFIX));
}
origin: it.unibz.inf.ontop/ontop-rdb

/**
 * Beware: immutable class!
 * <p>
 * Recommended constructor.
 * <p>
 * Changing the Properties object afterwards will not have any effect
 * on this OntopSQLCoreSettings object.
 *
 * @param userProperties
 */
protected OntopSQLCoreSettingsImpl(Properties userProperties) {
  super(userProperties);
  jdbcUrl = getRequiredProperty(OntopSQLCoreSettings.JDBC_URL);
  jdbcDriver = getProperty(OntopSQLCoreSettings.JDBC_DRIVER);
  jdbcName = getProperty(OntopSQLCoreSettings.JDBC_NAME)
      .orElseGet(() -> IDGenerator.getNextUniqueID(DB_PREFIX));
}
origin: it.unibz.inf.ontop/ontop-obdalib-core

  public static Collection<OBDAMappingAxiom> splitMappings(Collection<OBDAMappingAxiom> mappings) {

    List<OBDAMappingAxiom> newMappings = new LinkedList<>();
    
    OBDADataFactory dfac = OBDADataFactoryImpl.getInstance();

    for (OBDAMappingAxiom mapping : mappings) {
      List<Function> targetQuery = mapping.getTargetQuery();

      if (targetQuery.size() == 1) {
        // For mappings with only one body atom, we do not need to change it
        newMappings.add(mapping);
      }
      else {
        String id = mapping.getId();
        OBDASQLQuery sourceQuery = mapping.getSourceQuery();

        for (Function bodyAtom : targetQuery) {
          String newId = IDGenerator.getNextUniqueID(id + "#");
          OBDAMappingAxiom newMapping = dfac.getRDBMSMappingAxiom(newId, sourceQuery, Collections.singletonList(bodyAtom));
          newMappings.add(newMapping);
        }
      }
    }

    return newMappings;
  }
}
origin: it.unibz.inf.ontop/ontop-mapping-sql-core

public MetaMappingExpander(Collection<SQLPPTriplesMap> mappings) {
  ImmutableList.Builder<SQLPPTriplesMap> builder1 = ImmutableList.builder();
  ImmutableList.Builder<Expansion> builder2 = ImmutableList.builder();
  for (SQLPPTriplesMap mapping : mappings) {
    ImmutableList<ImmutableFunctionalTerm> toBeExpanded = mapping.getTargetAtoms().stream()
        .filter(atom -> atom.getFunctionSymbol().isTriplePredicate())
        .collect(ImmutableCollectors.toList());
    if (toBeExpanded.isEmpty()) {
      builder1.add(mapping);
    }
    else {
      builder2.addAll(toBeExpanded.stream()
          .map(target -> new Expansion(mapping.getId(), mapping.getSourceQuery(), target))
          .iterator());
      ImmutableList<ImmutableFunctionalTerm> toBeLeft = mapping.getTargetAtoms().stream()
          .filter(atom -> !atom.getFunctionSymbol().isTriplePredicate())
          .collect(ImmutableCollectors.toList());
      if (!toBeLeft.isEmpty()) {
        // TODO: see how to keep the provenance
        SQLPPTriplesMap newMapping = new OntopNativeSQLPPTriplesMap(
            IDGenerator.getNextUniqueID(mapping.getId() + "#"),
            mapping.getSourceQuery(),
            toBeLeft);
        builder1.add(newMapping);
      }
    }
  }
  nonExpandableMappings = builder1.build();
  mappingsToBeExpanded = builder2.build();
}
origin: ontop/ontop

IDGenerator.getNextUniqueID(m.id + "#"),
MAPPING_FACTORY.getSQLQuery(newSourceQuery),
ImmutableList.of(newTarget));
origin: it.unibz.inf.ontop/ontop-mapping-sql-core

IDGenerator.getNextUniqueID(m.id + "#"),
MAPPING_FACTORY.getSQLQuery(newSourceQuery),
ImmutableList.of(newTarget));
origin: it.unibz.inf.ontop/ontop-obdalib-core

String newId = IDGenerator.getNextUniqueID(id + "#");
OBDAMappingAxiom newMapping = instantiateMapping(newId, targetQuery,
    bodyAtom, sourceQueryParsed, columnsForTemplate,
origin: it.unibz.inf.ontop/ontop-obdalib-r2rml

List<Function> tquery = axiom.getTargetQuery();
String random_number = IDGenerator.getNextUniqueID("");
  random_number = IDGenerator.getNextUniqueID("");
  Predicate pred = func.getFunctionSymbol();
it.unibz.inf.ontop.utilsIDGenerator

Most used methods

  • getNextUniqueID

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top Vim plugins
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