Package org.openrdf.model

Examples of org.openrdf.model.URI.stringValue()


                try {
                    RepositoryConnection conn = sesameService.getConnection();

                    URI webId = conn.getValueFactory().createURI(webId_str);

                    log.info("creating user with webId: {} ", webId.stringValue());

                    if (!login.equals(ANONYMOUS_LOGIN) && !login.equals(ADMIN_LOGIN)) {
                        MarmottaUser u = FacadingFactory.createFacading(conn).createFacade(webId, MarmottaUser.class);
                        u.setFirstName(firstName);
                        u.setLastName(lastName);
View Full Code Here


            String datatype;
           
            if (datatypeURI == null) {
                datatype = null;
            } else {
                datatype = datatypeURI.stringValue();
            }
           
            triple(subject.stringValue(), predicate.stringValue(), value, datatype, language);
        } else {
            triple(subject.stringValue(), predicate.stringValue(), object.stringValue());
View Full Code Here

                while(result.hasNext()) {
                    Resource next = result.next();
                    if(next instanceof URI) {
                        URI uri = (URI)next;
                        if (filter) {
                            if (uri.stringValue().startsWith(configurationService.getBaseContext())) {
                                contexts.add(uri);
                            }
                        } else {
                            contexts.add(uri);
                        }
View Full Code Here

            RepositoryConnection conn = sesameService.getConnection();
            try {
                final URI user = userService.getUser(login);
                if (user == null) return Response.status(Status.NOT_FOUND).entity(String.format("User %s not found", login)).build();

                java.net.URI u = new java.net.URI(configurationService.getServerUri() + "resource?uri=" + URLEncoder.encode(user.stringValue(), "utf-8"));

                return Response.seeOther(u).header("Accept", types).build();
            } finally {
                conn.commit();
                conn.commit();
View Full Code Here

                webid = userService.getUser(login);
            }
        }

        if(webid instanceof KiWiUriResource) {
            UserAccount account = new UserAccount(login, webid.stringValue());

            save(account);

            return account;
        } else {
View Full Code Here

       {
         Iterator<URI> it = list.iterator();
         while(it.hasNext())
         {
           URI v = it.next();
           ret.append(" define input:default-graph-uri <" + v.stringValue() + "> \n");
         }
       }

       list = dataset.getNamedGraphs();
       if (list != null)
View Full Code Here

       {
         Iterator<URI> it = list.iterator();
         while(it.hasNext())
         {
           URI v = it.next();
           ret.append(" define input:named-graph-uri <" + v.stringValue() + "> \n");
         }
       }
    }
    ret.append(substBindings(query, bindings));
    return ret.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.