Examples of createOntology()


Examples of com.hp.hpl.jena.ontology.OntModel.createOntology()

    // The new OntModel that will contain the pre-existing attributes (if any),
    // plus the new and updated attributes:
    final OntModel newOntModel = ModelFactory.createOntologyModel(model.getSpecification(), model);
    // Note: previously, newOntModel = new OwlModel(model); but the OwlModel extension was not used
    // in any particular way, so the new call should be equivalent.
    final Ontology ont_ = newOntModel.createOntology(base_);
    if ( log.isDebugEnabled() ) {
      log.debug("New ontology created with namespace " + ns_ + " base " + base_);
    }
    newOntModel.setNsPrefix("", ns_);
   
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.createOntology()

   
    // The new OntModel that will contain the pre-existing attributes (if any),
    // plus the new and updated attributes:
    final OntModel newOntModel = _createOntModel(model);
    final Ontology ont_ = newOntModel.createOntology(base_);
    log.info("New ontology created with namespace " + ns_ + " base " + base_);
    newOntModel.setNsPrefix("", ns_);
   
    // set preferred prefixes:
    Map<String, String> preferredPrefixMap = MdHelper.getPreferredPrefixMap();
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntModel.createOntology()

   
    // The new OntModel that will contain the pre-existing attributes (if any),
    // plus the new and updated attributes:
    final OntModel newOntModel = _createOntModel(model);
    final Ontology ont_ = newOntModel.createOntology(base_);
    log.info("New ontology created with namespace " + ns_ + " base " + base_);
    newOntModel.setNsPrefix("", ns_);
   
    // set preferred prefixes:
    Map<String, String> preferredPrefixMap = MdHelper.getPreferredPrefixMap();
View Full Code Here

Examples of com.hp.hpl.jena.ontology.impl.OntModelImpl.createOntology()

    for ( String uri : preferredPrefixMap.keySet() ) {
      String prefix = preferredPrefixMap.get(uri);
      newOntModel.setNsPrefix(prefix, uri);
    }

    newOntModel.createOntology(base_);
    if ( log.isDebugEnabled() ) {
      log.debug("New ontology created with namespace " + ns_ + " base " + base_);
    }

    return newOntModel;
View Full Code Here

Examples of org.biojava.ontology.OntologyFactory.createOntology()

            )
  throws ParseException, IOException {
   
     try {
       OntologyFactory factory = OntoTools.getDefaultFactory();
       Ontology ontology = factory.createOntology(ontoName, ontoDescription);
      
           OboFileParser parser = new OboFileParser();
          
           OboFileEventListener handler = new OboFileHandler(ontology);
          
View Full Code Here

Examples of org.mmisw.orrclient.IOrrClient.createOntology()

    createOntologyInfo.setDataCreationInfo(dataCreationInfo);
    createOntologyInfo.setHostingType(HostingType.RE_HOSTED);
    Map<String, String> metadataValues = _getMetadataValues(prefix);
    createOntologyInfo.setMetadataValues(metadataValues);
   
    CreateOntologyResult createOntologyResult = orrClient.createOntology(createOntologyInfo);
    assertNull("No error in createOntologyResult", createOntologyResult.getError());
    log.debug("createOntologyResult = " +createOntologyResult);
   
   
    log.info("=============== registerOntology =================");
View Full Code Here

Examples of org.mmisw.orrclient.core.vine.MappingOntologyCreator.createOntology()

      log.error(error, e);
      createVocabResult.setError(error);
      return;
    }
   
    ontCreator.createOntology(createVocabResult);
  }

 
  public RegisterOntologyResult registerOntology(CreateOntologyResult createOntologyResult, LoginResult loginResult) {
    RegisterOntologyResult registerOntologyResult = null;
View Full Code Here

Examples of org.semanticweb.owl.model.OWLOntologyManager.createOntology()

      OWLOntologyManager tboxMgr = OWLManager.createOWLOntologyManager();
      OWLOntologyManager aboxMgr = OWLManager.createOWLOntologyManager();
     
      // Create two ontologies: Tbox and Abox
      OWLOntology tbox = tboxMgr.createOntology(tboxURI);
      OWLOntology abox = aboxMgr.createOntology(aboxURI);
   
      Set<OWLLogicalAxiom> axioms = ontology.getLogicalAxioms();
      logger.info("Number of logical axioms: "+axioms.size());
      for (OWLLogicalAxiom axiom : axioms){
        if (axiom instanceof OWLIndividualAxiom){
View Full Code Here

Examples of org.semanticweb.owl.model.OWLOntologyManager.createOntology()

      OWLOntologyManager tboxMgr = OWLManager.createOWLOntologyManager();
      OWLOntologyManager aboxMgr = OWLManager.createOWLOntologyManager();
     
      // Create two ontologies: Tbox and Abox
      OWLOntology tbox = tboxMgr.createOntology(tboxURI);
      OWLOntology abox = aboxMgr.createOntology(aboxURI);
   
      Set<OWLLogicalAxiom> axioms = ontology.getLogicalAxioms();
      logger.info("Number of logical axioms: "+axioms.size());
      for (OWLLogicalAxiom axiom : axioms){
        if (axiom instanceof OWLClassAssertionAxiom){
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLOntologyManager.createOntology()

    @Test
    public void testCreateOntologyChangeEquals()
            throws OWLOntologyCreationException {
        OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
        OWLOntology ontology = manager.createOntology();
        OWLOntologyID ontologyID = ontology.getOntologyID();
        AddAxiomData addAxiomData = new AddAxiomData(mockAxiom);
        OWLOntologyChangeRecord changeRecord = new OWLOntologyChangeRecord(
                ontologyID, addAxiomData);
        OWLOntologyChange change = changeRecord.createOntologyChange(manager);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.