Modeling an RDF Resource
// Non-RDF Class
public class Expense {
private UUID _id;
private Date date;
private String description;
// ... Additional fields
public Expense() {
}
public Expense(date, description, //...) {
this.date = date;
this.description = descriptions;
//...
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
// ... Additional getters/setters and other content
}1. Extend the SolidRDFSource
Field
Type
Description
2. Inner Class that Extends WrapperIRI
Add the Inner Class Field to the RDF Resource Class
Last updated