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

How to use
ConfigurationOntology
in
com.mysema.rdfbean.object

Best Java code snippets using com.mysema.rdfbean.object.ConfigurationOntology (Showing top 4 results out of 315)

origin: com.mysema.rdf/rdfbean-core

public void setConfiguration(Configuration configuration) {
  this.configuration = configuration;
  this.ontology = new ConfigurationOntology(configuration);
}
origin: com.mysema.rdf/rdfbean-core

public ConfigurationOntology(Configuration configuration) {
  Set<UID> types = new HashSet<UID>();
  Multimap<UID, UID> directSubtypes = MultimapFactory.<UID, UID> createWithSet();
  Multimap<UID, UID> directSupertypes = MultimapFactory.<UID, UID> createWithSet();
  for (MappedClass mappedClass : configuration.getMappedClasses()) {
    types.add(mappedClass.getUID());
    for (MappedClass superClass : mappedClass.getMappedSuperClasses()) {
      directSupertypes.put(mappedClass.getUID(), superClass.getUID());
      directSubtypes.put(superClass.getUID(), mappedClass.getUID());
    }
    // ClassMapping classMapping =
    // mappedClass.getJavaClass().getAnnotation(ClassMapping.class);
    // if (!classMapping.parent().equals("")) {
    // UID parent = new UID(classMapping.parent());
    // directSupertypes.put(mappedClass.getUID(), parent);
    // directSubtypes.put(parent, mappedClass.getUID());
    // }
  }
  initializeTypeHierarchy(types, directSubtypes, directSupertypes);
}
origin: com.mysema.rdf/rdfbean-core

@Before
public void setUp() {
  configuration = new DefaultConfiguration(TEST.NS, Entity1.class, Entity2.class, Entity3.class);
  ontology = new ConfigurationOntology(configuration);
}
origin: com.mysema.rdf/rdfbean-core

@Before
public void setUp() {
  metadata = new DefaultQueryMetadata();
  RDFConnection connection = new MiniRepository().openConnection();
  Configuration configuration = new DefaultConfiguration(User.class);
  Ontology ontology = new ConfigurationOntology(configuration);
  Session session = new SessionImpl(configuration, new ConfigurationOntology(configuration), connection);
  builder = new RDFQueryBuilder(connection, session, configuration, ontology, metadata);
  query = new QueryMixin(metadata);
}
com.mysema.rdfbean.objectConfigurationOntology

Javadoc

ConfigurationOntology provides a Configuration based implementation of the Ontology interface

Most used methods

  • <init>
  • initializeTypeHierarchy

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Option (scala)
  • 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