Examples of DereferenceException


Examples of org.apache.stanbol.enhancer.engines.dereference.DereferenceException

   
    @Override
    public final boolean dereference(UriRef uri, MGraph graph, Lock writeLock, DereferenceContext derefContext) throws DereferenceException {
        T service = getService();
        if(service == null){
            throw new DereferenceException(uri, serviceClass.getClass().getSimpleName()
                + "service is currently not available");
        }
        Representation rep;
        try {
            rep = getRepresentation(service, uri.getUnicodeString(), derefContext.isOfflineMode());
        } catch(EntityhubException e){
            throw new DereferenceException(uri,e);
        }
        //we need the languages as strings
        final Set<String> langs = derefContext.getLanguages();
       
        if(rep != null){
View Full Code Here

Examples of org.apache.stanbol.enhancer.engines.dereference.DereferenceException

        for(at.newmedialab.ldpath.model.fields.FieldMapping<?,Object> mapping : ldpathProgram.getFields()) {
          Collection<?> values;
          try {
            values = mapping.getValues(rdfBackend, context);
            } catch (RuntimeException e){
                throw new DereferenceException(uri, e);
            }
            if(values != null && !values.isEmpty()){
                String fieldName = mapping.getFieldName();
                if(langs.isEmpty()){
                    result.add(fieldName,values);
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.