Hello,

I have created a ModelD2RQUpdate model and i would like
to use the add(resource, property, string) method. More specifically,
this is my code:

String mappingFile = "blah.n3";
        
        
        ModelD2RQUpdate  d2rqModel = new ModelD2RQUpdate(mappingFile);

d2rqModel.add(resource, FOAF.page, string);

I have also tried the createStatement and createProperty methods as follows:
        d2rqModel.createStatement(s,p,o);
        d2rqModel.createProperty(string uri);
        
But when i am trying to print out the statements using this code
        StmtIterator state=
 d2rqModel.listStatements();
        while(state.hasNext()){
            String statem = state.nextStatement().toString();
            System.out.println(statem + "/n");

or write method
        
        d2rqModel.write(System.out, "TURTLE"); 

I don't get the newly created statements. Why?? ModelD2RQUpdate is a read-only 
model?? How can i check it??

Could you help me please??

Thank you,
Vivi.


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to