/** Answer the datatype URI of this literal, null if it untyped. */ @Override public String getDatatypeURI() { if (dtype == null) return null; return dtype.getURI(); }
/** Answer the datatype URI of this literal, null if it untyped. */ @Override public String getDatatypeURI() { if (dtype == null) return null; return dtype.getURI(); }
@Override public String getURI() { return delegate.getURI(); }
@Override public String getURI() { return decoratee.getURI(); }
@Override public String getURI() { return delegate.getURI(); }
private static boolean isXmlLiteralProperty(final URI propValueType) { return XMLLiteralType.theXMLLiteralType.getURI().equals(propValueType.toString()); }
/** * Register a new datatype */ public void registerDatatype(final RDFDatatype type) { uriToDT.put(type.getURI(), type); final Class<?> jc = type.getJavaClass(); if (jc != null) { classToDT.put(jc, type); } } }
/** * Register a new datatype */ public void registerDatatype(final RDFDatatype type) { uriToDT.put(type.getURI(), type); final Class<?> jc = type.getJavaClass(); if (jc != null) { classToDT.put(jc, type); } } }
private String removeStringTypes(final String value) { if (value != null) { // Remove string datatype String v = value.replace(FIELD_DELIMITER + XSDstring.getURI(), ""); // Remove lang datatype v = v.replace(FIELD_DELIMITER + RDF.dtLangString.getURI(), FIELD_DELIMITER); // Remove lang placeholder return v.replace(FIELD_DELIMITER + FIELD_DELIMITER, ""); } return null; } }
private static String xsdDatatypeName(RDFDatatype datatype) { return "XSD "+SplitIRI.localname(datatype.getURI()); } }
public static boolean isWKTLiteral(LiteralLabel literal) { RDFDatatype dtype = literal.getDatatype(); if (dtype == null) return false; if (dtype.getURI().equals( EntityDefinition.geosparql_wktLiteral.getURI())) return true; return false; } }
public static boolean isWKTLiteral(LiteralLabel literal) { RDFDatatype dtype = literal.getDatatype(); if (dtype == null) return false; if (dtype.getURI().equals( EntityDefinition.geosparql_wktLiteral.getURI())) return true; return false; } }
/** * Appends a Typed Literal to the command text as a constant using * appropriate formatting * * @param value * Lexical Value * @param datatype * Datatype */ public void appendLiteral(String value, RDFDatatype datatype) { this.appendNode(NodeFactoryExtra.createLiteralNode(value, null, datatype.getURI())); }
public static Resource langString() { return ResourceFactory.createResource(dtLangString().getURI()) ; } public static Resource HTML() { return ResourceFactory.createResource(dtRDFHTML().getURI()) ; }
public static Resource langString() { return ResourceFactory.createResource(dtLangString().getURI()) ; } public static Resource HTML() { return ResourceFactory.createResource(dtRDFHTML().getURI()) ; }
public static Resource HTML() { return ResourceFactory.createResource(dtRDFHTML().getURI()) ; } public static Resource xmlLiteral() { return ResourceFactory.createResource(dtXMLLiteral().getURI()) ; }
public static Resource HTML() { return ResourceFactory.createResource(dtRDFHTML().getURI()) ; } public static Resource xmlLiteral() { return ResourceFactory.createResource(dtXMLLiteral().getURI()) ; }
@Override public IRI getDatatype() { return internalJenaFactory.createIRI(asJenaNode().getLiteralDatatype().getURI()); }
@Test public void testBuildNode_06() { Item item = SSE.parseItem("true"); Node n = BuilderNode.buildNode(item); assertTrue(n.isLiteral()); assertEquals("true", n.getLiteralLexicalForm()); assertEquals(XSD.xboolean.getURI(), n.getLiteralDatatype().getURI()); }