
jenabean
Code Examples
To get a quick idea of how using jenabean might look see the junit test class. There is also a very simple stripes application that provides an example of using jenabean within an app.
``` package test; import thewebsemantic.Id;
public class KeepItSimple {
@Id
private String id;
private int value;
public int getValue() {return value;}
public void setValue(int i) {value = i;}
public String getId() {return id;}
public void setId(String id) {this.id = id;}
}
```
``` @prefix : http://test.bean/ .
http://thewebsemantic.com/javaclass a owl:AnnotationProperty .
http://test.bean/KeepItSimple/kisv1.1 a :KeepItSimple ; :id "kisv1.1"^^xsd:string ; :value "444"^^xsd:int .
:KeepItSimple a rdfs:Class ; http://thewebsemantic.com/javaclass "test.bean.KeepItSimple" .
:id a rdf:Property .
:value a rdf:Property . ```
Project Information
- License: Apache License 2.0
- 46 stars
- svn-based source control
Labels:
RDF
javabeans
Jena
semanticweb
Java
OWL
annotations
binding