Package com.hp.hpl.jena.rdf.model

Examples of com.hp.hpl.jena.rdf.model.Resource.asResource()


          || uri.startsWith("http://purl.uniprot.org/uniprot#")){
       
        String index = "";
       
        // If the resource has an RDFS:label
        if(labelednodes.contains(rdfnode.asResource())){
          String rdflabel = rdfnode.asResource().getProperty(RDFS.label).getLiteral().toString();
          index = rdflabel + " (" + nsandtlas.get(OWLMethods.getNamespaceFromIRI(uri))[0] + ")";
          urisandlabels.put(uri, rdflabel);
          // Associate instances of this reference resources with RDFS:labels
          for(Statement st : rdfnode.listProperties(normweight).toSet()){
View Full Code Here


       
        String index = "";
       
        // If the resource has an RDFS:label
        if(labelednodes.contains(rdfnode.asResource())){
          String rdflabel = rdfnode.asResource().getProperty(RDFS.label).getLiteral().toString();
          index = rdflabel + " (" + nsandtlas.get(OWLMethods.getNamespaceFromIRI(uri))[0] + ")";
          urisandlabels.put(uri, rdflabel);
          // Associate instances of this reference resources with RDFS:labels
          for(Statement st : rdfnode.listProperties(normweight).toSet()){
            urisandlabels.put(st.getObject().toString(), rdflabel);
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.