Package sherpa.protocol

Examples of sherpa.protocol.PlainLiteral


    } else if (value instanceof RDFNode) {
      return (RDFNode) value;
    } else if (value instanceof IRI) {
      return new NamedNodeImpl(URI.create(((IRI)value).iri.toString()));
    } else if (value instanceof PlainLiteral) {
      PlainLiteral pl = (PlainLiteral)value;
      String lang = pl.language != null ? pl.language.toString() : null;
      return new PlainLiteralImpl(pl.lexical.toString(), lang);
    } else if (value instanceof TypedLiteral) {
      TypedLiteral tl = (TypedLiteral)value;
      return new TypedLiteralImpl(tl.lexical.toString(), URI.create(tl.datatype.toString()));
View Full Code Here


    }
    return list;
  }
 
  public static PlainLiteral plainLit(PlainLiteralImpl l) {
    PlainLiteral lit = new PlainLiteral();
    lit.lexical = l.getLexical();
    lit.language = l.getLanguage();
    return lit;
  }
View Full Code Here

TOP

Related Classes of sherpa.protocol.PlainLiteral

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.