Examples of ModelOwlToJenaConvert()


Examples of org.apache.stanbol.commons.owl.transformation.JenaToOwlConvert.ModelOwlToJenaConvert()

    public RunSingleSPARQL(OWLOntology owl){
        this.owlmodel = owl;

        try{
        JenaToOwlConvert j2o = new JenaToOwlConvert();
        this.jenamodel = j2o.ModelOwlToJenaConvert(owlmodel,"RDF/XML");
        Iterator<String> iter = jenamodel.getNsPrefixMap().keySet().iterator();
        Map<String, String> map = jenamodel.getNsPrefixMap();
        this.sparqlprefix = (HashMap<String, String>) map;
  
        while(iter.hasNext()){
View Full Code Here

Examples of org.apache.stanbol.commons.owl.transformation.JenaToOwlConvert.ModelOwlToJenaConvert()

     * @param prefix {The map where the keys are the prefix label and the value the IRI of the prefix on the form: http://www.w3.org/2000/01/rdf-schema#.}
     */
    public RunSingleSPARQL(OWLOntology owl, HashMap<String,String> prefix){
        this.owlmodel = owl;
        JenaToOwlConvert j2o = new JenaToOwlConvert();
        this.jenamodel = j2o.ModelOwlToJenaConvert(owlmodel,"RDF/XML");
        Iterator<String> keys = prefix.keySet().iterator();
        this.sparqlprefix = new HashMap();
        while(keys.hasNext()){
            String key = keys.next();
            String pre = prefix.get(key);
View Full Code Here

Examples of org.apache.stanbol.commons.owl.transformation.JenaToOwlConvert.ModelOwlToJenaConvert()

    } catch (OWLOntologyCreationException e) {
      e.printStackTrace();
      fail("Could not load ontology");
    }
    try {
      jena = j2o.ModelOwlToJenaConvert(owl, "RDF/XML");
                        if(jena == null){
                            fail("Some errors occur");
                        }else{
                   
                    ExtendedIterator<OntClass> jenaclass = jena.listNamedClasses();
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.