Package org.wikier.trioo.jtrioo.exceptions

Examples of org.wikier.trioo.jtrioo.exceptions.MappingNotFoundException


  }
 
  private void buildCURIE(String prefix, String reference) {
    String namespace = NamespacesManager.getInstance().getMapping(prefix);
    if (namespace == null) {
      throw new MappingNotFoundException(prefix);
    }
    try {
      new URI(namespace + reference);
    } catch (URISyntaxException e) {
      throw new CURIESyntaxException(e);
View Full Code Here


      RDFNode node  = qs.get("type");
      if (node.isURIResource()) {
        String ns = URIUtils.getNamespace(node.toString());
        String prefix = NamespacesManager.getInstance().getPrefix(ns);
        if (prefix == null) {
          throw new MappingNotFoundException("namespace " + ns);
        }
        CURIE curie = new CURIE(prefix, URIUtils.getReference(node.toString()));
        metaResource.addRdfType(curie);
      }
    }
View Full Code Here

TOP

Related Classes of org.wikier.trioo.jtrioo.exceptions.MappingNotFoundException

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.