Using Javadoc quite often helps...

Given that you have an Individual, you can find links at [1] to
explanations for both methods [2] [3]

[1]
https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/ontology/Individual.html

[2]
https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/rdf/model/Resource.html#addLiteral-org.apache.jena.rdf.model.Property-boolean-

[3]
https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/ontology/OntResource.html#setPropertyValue-org.apache.jena.rdf.model.Property-org.apache.jena.rdf.model.RDFNode-

On 16.10.2016 17:59, tina sani wrote:
> Hi
>
> What is the difference between addLiteral() and setpropertyvalue() when we
> want to assign values to an individual.?
> For example,
>
> //myEmployee is an instance.
>
> myEmplyee.addliteral(property, value)
> myEmployee.setpropertyvalue(property, value)
>

Reply via email to