Package com.github.jsonldjava.core

Examples of com.github.jsonldjava.core.JsonLdError


                } else {
                    break;
                }
            }
            if ("".equals(line) && !endIsOK()) {
                throw new JsonLdError(JsonLdError.Error.PARSE_ERROR,
                        "Error while parsing Turtle; unexpected end of input. {line: " + lineNumber
                                + ", position:" + linePosition + "}");
            }
        }
View Full Code Here


        public String expandIRI(String ns, String name) throws JsonLdError {
            if (namespaces.containsKey(ns)) {
                return namespaces.get(ns) + name;
            } else {
                throw new JsonLdError(JsonLdError.Error.PARSE_ERROR, "No prefix found for: " + ns
                        + " {line: " + lineNumber + ", position:" + linePosition + "}");
            }
        }
View Full Code Here

        if (input instanceof ModelSet) {
            importModelSet(result, (ModelSet) input);
        } else if (input instanceof Model) {
            importModel(result, (Model) input);
        } else {
            throw new JsonLdError(Error.INVALID_INPUT,
                    "RDF2Go parser expects a Model or ModelSet object as input");
        }

        return result;
    }
View Full Code Here

TOP

Related Classes of com.github.jsonldjava.core.JsonLdError

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.