Package org.ontoware.rdf2go.model

Examples of org.ontoware.rdf2go.model.ModelSet.createURI()


    BookmarksHelper bh = new BookmarksHelper(dirUri);
    String uri = bh.createResource(dirUri, dirLabel, dirComment, person,true);
   
    try
    {
      innerModel.addStatement(null,innerModel.createURI(uri), innerModel.createURI(S3B_SSCF.isIn), innerModel.createURI(ownerMbox));
    }
    catch (Exception e)
    {
      //if the inserting is failed, removed just created resource
      XfoafSscfResource xfsr = XfoafSscfResource.getXfoafSscfResource(uri,innerModel);
View Full Code Here


    BookmarksHelper bh = new BookmarksHelper(dirUri);
    String uri = bh.createResource(dirUri, dirLabel, dirComment, person,true);
   
    try
    {
      innerModel.addStatement(null,innerModel.createURI(uri), innerModel.createURI(S3B_SSCF.isIn), innerModel.createURI(ownerMbox));
    }
    catch (Exception e)
    {
      //if the inserting is failed, removed just created resource
      XfoafSscfResource xfsr = XfoafSscfResource.getXfoafSscfResource(uri,innerModel);
View Full Code Here

    BookmarksHelper bh = new BookmarksHelper(dirUri);
    String uri = bh.createResource(dirUri, dirLabel, dirComment, person,true);
   
    try
    {
      innerModel.addStatement(null,innerModel.createURI(uri), innerModel.createURI(S3B_SSCF.isIn), innerModel.createURI(ownerMbox));
    }
    catch (Exception e)
    {
      //if the inserting is failed, removed just created resource
      XfoafSscfResource xfsr = XfoafSscfResource.getXfoafSscfResource(uri,innerModel);
View Full Code Here

       
        Map<Resource,String> toChange = new HashMap<Resource,String>();
   
    ModelSet model = DbFace.getModel();
 
    URI type = model.createURI(RDF.type.toString());
    URI webres = model.createURI(S3B_SSCF.WebResource);
    URI seeAlso = RDFS.seeAlso;
   
    //- find all uris
    ClosableIterator<Statement> it =  model.findStatements(null,null, type,webres);
View Full Code Here

        Map<Resource,String> toChange = new HashMap<Resource,String>();
   
    ModelSet model = DbFace.getModel();
 
    URI type = model.createURI(RDF.type.toString());
    URI webres = model.createURI(S3B_SSCF.WebResource);
    URI seeAlso = RDFS.seeAlso;
   
    //- find all uris
    ClosableIterator<Statement> it =  model.findStatements(null,null, type,webres);
   
View Full Code Here

       
        //1. get all triples with our subject
        ClosableIterator<Statement> it3 = model.findStatements(null,res, null, null);
       
        //create new uri
        URI newUri = model.createURI(toChange.get(res));
       
        sb.append("* Old URI - ");
        sb.append(res.toString());
        sb.append("<br>* New URI - ");
        sb.append(newUri.toString());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.