Package uk.ac.osswatch.simal.model

Examples of uk.ac.osswatch.simal.model.IncompatibleTypeException


    Set<Statement> set = r.listProperties(RDF.type).toSet();

    if (set.size() > 0) {
      Resource type = set.iterator().next().getResource();
      if (!type.equals(FOAF.Document)) {
        throw new IncompatibleTypeException("Expected resource " + r
            + " to be of type " + FOAF.Document + " but is of type " + type);
      }
    } else {
      Statement s = model.createStatement(r, RDF.type, FOAF.Document);
      model.add(s);
View Full Code Here

TOP

Related Classes of uk.ac.osswatch.simal.model.IncompatibleTypeException

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.