Package org.ontospread.exceptions

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


  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

  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

  }

  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

TOP

Related Classes of org.ontospread.exceptions.ConceptNotFoundException

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.