/** * Generic method to set the literal value of a property of this resource to the provided * value without setting a language. For all spaces!!! * * @param propLabel the SeRQL or SPARQL short or long notation for the property * @param propValue the String value of this property */ public static void setProperty(RepositoryConnection con, Resource r, String propLabel, String propValue) throws RepositoryException { setProperty(con,r,propLabel,propValue,(URI)null); }
/** * Generic method to set the literal value of a property of this resource to the provided * value in the provided language. For all spaces. * * @param propLabel the SeRQL or SPARQL short or long notation for the property * @param propValue the String value of this property * @param context a context */ public static <T> void setProperty(RepositoryConnection con, Resource r, String propLabel, String propValue, URI context) throws RepositoryException { setProperty(con,r,propLabel,propValue,null, context); }
/** * Generic method to set the literal value of a property of this resource to the provided * value without setting a language. For all spaces!!! * * @param propLabel the SeRQL or SPARQL short or long notation for the property * @param propValue the String value of this property */ public static void setProperty(RepositoryConnection con, Resource r, String propLabel, String propValue) throws RepositoryException { setProperty(con,r,propLabel,propValue,(URI)null); }
/** * Generic method to set the literal value of a property of this resource to the provided * value in the provided language. For all spaces. * * @param propLabel the SeRQL or SPARQL short or long notation for the property * @param propValue the String value of this property * @param context a context */ public static <T> void setProperty(RepositoryConnection con, Resource r, String propLabel, String propValue, URI context) throws RepositoryException { setProperty(con,r,propLabel,propValue,null, context); }
/** * Generic method to set the literal value of a property of this resource to the provided * value in the provided language. For all spaces. * * @param propLabel the SeRQL or SPARQL short or long notation for the property * @param propValue the String value of this property * @param loc the Locale representing the language of this property */ public static <T> void setProperty(RepositoryConnection con, Resource r, String propLabel, String propValue, Locale loc) throws RepositoryException { setProperty(con, r,propLabel,propValue,null, null); }
/** * Set the rdfs:label of this Resource in the configured getTripleStore().TripleStore * for the given Locale. Just for the given space !!! * * @param loc * @param label * @param context */ public static void setLabel(RepositoryConnection con, Resource r, Locale loc, String label, URI context) throws RepositoryException { setProperty(con, r,"<"+ Namespaces.NS_RDFS+"label>", label, loc,context); }
/** * Generic method to set the literal value of a property of this resource to the provided * value in the provided language. For all spaces. * * @param propLabel the SeRQL or SPARQL short or long notation for the property * @param propValue the String value of this property * @param loc the Locale representing the language of this property */ public static <T> void setProperty(RepositoryConnection con, Resource r, String propLabel, String propValue, Locale loc) throws RepositoryException { setProperty(con, r,propLabel,propValue,null, null); }
/** * Set the rdfs:label of this Resource in the configured getTripleStore().TripleStore * for the given Locale. Just for the given space !!! * * @param loc * @param label * @param context */ public static void setLabel(RepositoryConnection con, Resource r, Locale loc, String label, URI context) throws RepositoryException { setProperty(con, r,"<"+ Namespaces.NS_RDFS+"label>", label, loc,context); }