Package org.semanticweb.owl.util

Examples of org.semanticweb.owl.util.SimpleURIMapper


          /* create the logical URI of the new Abox */
          URI newAboxURI = createNewURI(abox.getURI().toString(), rr.getRunNumber());
          /* create the physical URI of the new Abox */
          URI newAboxPhysicalURI = createNewURI(tmpAboxURI, rr.getRunNumber());
          /* Set up a mapping, which maps the ontology URI to the physical URI */
          SimpleURIMapper mapper = new SimpleURIMapper(newAboxURI, newAboxPhysicalURI);
          manager.addURIMapper(mapper);
         
          /* Create a new Abox to store the newly inferred instance relations and the Abox used in the current run */
          modifiedAbox = manager.createOntology(newAboxURI);
          manager.addAxioms(modifiedAbox, abox.getAxioms());
View Full Code Here


  }
 
  private static void saveOntologyToFile(OWLOntology ontology, URI tboxPhysicalURI){
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    /* Set up a mapping, which maps the ontology URI to the physical URI */
    SimpleURIMapper mapper = new SimpleURIMapper(ontology.getURI(), tboxPhysicalURI);
    manager.addURIMapper(mapper);
    try {
      manager.saveOntology(ontology, new RDFXMLOntologyFormat(), tboxPhysicalURI);
    } catch (UnknownOWLOntologyException e) {
      logger.equals("Couldn't save approximated Tbox to file ("+tboxPhysicalURI+")");
View Full Code Here

        {
          URI newAboxURI = createURI(aboxOntology.getURI(), runResult
              .getRunNumber());
          URI newAboxPhysicalURI = createURI(tmpAboxURI, runResult
              .getRunNumber());
          SimpleURIMapper mapper = new SimpleURIMapper(newAboxURI,
              newAboxPhysicalURI);
          manager.addURIMapper(mapper);

          modifiedAboxOntology = manager.createOntology(newAboxURI);
          manager.addAxioms(modifiedAboxOntology, aboxOntology
View Full Code Here

  }

  private void saveOntology(OWLOntology ontology, URI physicalURI)
  {
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    SimpleURIMapper mapper = new SimpleURIMapper(ontology.getURI(),
        physicalURI);
    manager.addURIMapper(mapper);

    try
    {
View Full Code Here

        //System.out.println("Debugging ontology: " + ontologyCounter);
        if (debuggingOntology != null) {
            owlOntologyManager.removeOntology(debuggingOntology.getURI());
        }
        URI uri = createURI();
        OWLOntologyURIMapper mapper = new SimpleURIMapper(uri, uri);
        owlOntologyManager.addURIMapper(mapper);
        debuggingOntology = owlOntologyManager.createOntology(uri);
        owlOntologyManager.removeURIMapper(mapper);
        List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>();
        for (OWLAxiom ax : debuggingAxioms) {
View Full Code Here

    private void createDebuggingOntology() throws OWLException {
        if (debuggingOntology != null) {
            owlOntologyManager.removeOntology(debuggingOntology.getURI());
        }
        URI uri = createURI();
        OWLOntologyURIMapper mapper = new SimpleURIMapper(uri, uri);
        owlOntologyManager.addURIMapper(mapper);
        debuggingOntology = owlOntologyManager.createOntology(uri);
        owlOntologyManager.removeURIMapper(mapper);
        List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>();
        for (OWLAxiom ax : debuggingAxioms) {
View Full Code Here

TOP

Related Classes of org.semanticweb.owl.util.SimpleURIMapper

Copyright © 2018 www.massapicom. 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.