Package com.hp.hpl.jena.ontology

Examples of com.hp.hpl.jena.ontology.Ontology.addProperty()


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

    // Indicate VINE as the engineering tool:
    ont.addProperty(Omv.usedOntologyEngineeringTool, OmvMmi.vine);
   
    // add any desired owl:imports
    _addImports(ont);
   
    Map<String, Property> uriPropMap = MdHelper.getUriPropMap();
View Full Code Here


        Property prop = uriPropMap.get(uri);
        if ( prop == null ) {
          log.warn("No property found for uri='" +uri+ "'");
          continue;
        }
        ont.addProperty(prop, value.trim());
      }
    }
   
    // set Omv.uri from final
    ont.addProperty(Omv.uri, finalUri);
View Full Code Here

        ont.addProperty(prop, value.trim());
      }
    }
   
    // set Omv.uri from final
    ont.addProperty(Omv.uri, finalUri);
   
    // TODO set Omv.acronym from something
    ont.addProperty(Omv.acronym, "ACRONYM");
   
   
View Full Code Here

   
    // set Omv.uri from final
    ont.addProperty(Omv.uri, finalUri);
   
    // TODO set Omv.acronym from something
    ont.addProperty(Omv.acronym, "ACRONYM");
   
   
    String fullTitle = values.get("fullTitle");
    if ( fullTitle != null ) {
      ont.addProperty(Omv.name, fullTitle);
View Full Code Here

    ont.addProperty(Omv.acronym, "ACRONYM");
   
   
    String fullTitle = values.get("fullTitle");
    if ( fullTitle != null ) {
      ont.addProperty(Omv.name, fullTitle);
    }
   
    String creator = values.get("creator");
    if ( creator != null ) {
      ont.addProperty(Omv.hasCreator, creator);
View Full Code Here

      ont.addProperty(Omv.name, fullTitle);
    }
   
    String creator = values.get("creator");
    if ( creator != null ) {
      ont.addProperty(Omv.hasCreator, creator);
    }
   
    String briefDescription = values.get("briefDescription");
    if ( briefDescription != null ) {
      ont.addProperty(Omv.description, briefDescription);
View Full Code Here

      ont.addProperty(Omv.hasCreator, creator);
    }
   
    String briefDescription = values.get("briefDescription");
    if ( briefDescription != null ) {
      ont.addProperty(Omv.description, briefDescription);
    }
   
    if ( orgAbbreviation != null && orgAbbreviation.trim().length() > 0 ) {
      ont.addProperty(OmvMmi.origMaintainerCode, orgAbbreviation.trim());
    }
View Full Code Here

    if ( briefDescription != null ) {
      ont.addProperty(Omv.description, briefDescription);
    }
   
    if ( orgAbbreviation != null && orgAbbreviation.trim().length() > 0 ) {
      ont.addProperty(OmvMmi.origMaintainerCode, orgAbbreviation.trim());
    }
   
    createContents();
  }
View Full Code Here

        if ( value.trim().length() > 0 ) {
          Property prop = ResourceFactory.createProperty(uri);
          if ( doSet  &&  ont.getPropertyValue(prop) != null ) {
            ont.removeAll(prop);
          }
          ont.addProperty(prop, value.trim());
        }
      }
    }
    return ontModel;
  }
View Full Code Here

   
    Ontology ont = newOntModel.createOntology(base_);
    log.info("New ontology created with namespace " + ns_ + " base " + base_);

    // Indicate Voc2RDF as the engineering tool:
    ont.addProperty(Omv.usedOntologyEngineeringTool, OmvMmi.voc2rdf);

   
    Map<String, Property> uriPropMap = MdHelper.getUriPropMap();
    for ( String uri : values.keySet() ) {
      String value = values.get(uri).trim();
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.