Examples of ConceptNotFoundException


Examples of org.ontospread.exceptions.ConceptNotFoundException

    public JenaConceptBuilder(){       
    }

    public Concept createConceptResource(OntResource ontResource) throws ConceptNotFoundException {  
      if(ontResource == null){
        throw new ConceptNotFoundException("Concept can not be built because resource is "+ontResource);
      }
        logger.debug("Creating concept for resource " +ontResource.getURI());
        Concept concept =ConceptBuilderUtils.createEmptyConcept();
        if (!OntologyHelper.isUserConcept(ontResource)) {
            throw new ConceptUnsupportedOperation(ontResource.getURI()+ " createConcepResource");
View Full Code Here

Examples of org.ontospread.exceptions.ConceptNotFoundException

  public Concept getConcept(String conceptUri, String contextUri)
      throws ConceptNotFoundException {
    OntResource resource = getOntModel().getOntResource(conceptUri);
    if(resource == null){
      throw new ConceptNotFoundException("Concept "+conceptUri+" can not be built.");
    }
    return conceptFactory.createConceptResource(resource);
  }
View Full Code Here

Examples of org.ontospread.exceptions.ConceptNotFoundException

  public ConceptTO getConceptTO(String conceptUri)
      throws ConceptNotFoundException {
    OntResource resource = getOntModel().getOntResource(conceptUri);
    if(resource == null){
      throw new ConceptNotFoundException("Concept "+conceptUri+" can not be built.");
    }
    return OntologyHelper.createConceptTO(resource);
  }
View Full Code Here

Examples of org.ontospread.exceptions.ConceptNotFoundException

  }

  public RelationTO getRelationTO(String relationUri) throws ConceptNotFoundException {
    OntResource resource = getOntModel().getOntResource(relationUri);
    if(resource == null){
      throw new ConceptNotFoundException("Concept "+relationUri+" can not be built.");
    }
    return new RelationTO(OntologyHelper.createConceptTO(resource));
  }
View Full Code Here

Examples of owlsmx.exceptions.ConceptNotFoundException

          return node;
      }
      Resource r = getModel().getResource(clazzURI.toString());
      if (r!=null)
        return r.as(RDFNode.class);
      throw new ConceptNotFoundException(this.getClass().toString() + "|getRDFNode : Could not load class " + clazzURI.toString());
     
  }
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.