/** * List all outgoing edges from this resource to other resources. Shortcut for listOutgoing(null). * For all spaces!!! * * @return all outgoing edges from this resource */ public static Iterable<? extends Statement> listOutgoing(RepositoryConnection con, Resource r) throws RepositoryException { return listOutgoing(con, r, (URI) null); }
/** * List all outgoing edges from this resource to other resources. Shortcut for listOutgoing(null). * Just for the given space * * @return all outgoing edges from this resource */ public static Iterable<? extends Statement> listOutgoing(RepositoryConnection con, Resource r, URI context) throws RepositoryException { return listOutgoing(con, r,null,context); }
/** * List all outgoing edges from this resource to other resources. Shortcut for listOutgoing(null). * For all spaces!!! * * @return all outgoing edges from this resource */ public static Iterable<? extends Statement> listOutgoing(RepositoryConnection con, Resource r) throws RepositoryException { return listOutgoing(con, r, (URI) null); }
/** * List all outgoing edges from this resource to other resources. Shortcut for listOutgoing(null). * Just for the given space * * @return all outgoing edges from this resource */ public static Iterable<? extends Statement> listOutgoing(RepositoryConnection con, Resource r, URI context) throws RepositoryException { return listOutgoing(con, r,null,context); }
/** * List outgoing edges from this resource to other resources, using the property label passed * as argument. If limit is bigger than 0, then a maximum of limit triples will be returned. * Otherwise, all triples will be returned. * <p/> * The parameter propLabel is in the form of a SeRQL or SPARQL id. It can take one of the following * values: * <ul> * <li>a URI enclosed in < >, e.g. <http://www.example.com/myProp></li> * <li>a uri prefix, followed by a colon and the property name, e.g. ex:myProp</li> * <li>the value "null", in which case all outgoing edges are listed regardless of their label * (wildcard)</li> * </ul> * The result will be an iterable that allows to iterate over Statements. * * @param propLabel the label of the property to be queried, or null for wildcard * @return an iterable over the Statements that are outgoing edges of this resource */ public static Iterable<? extends Statement> listOutgoing(RepositoryConnection con, Resource r, String propLabel) throws RepositoryException { return listOutgoing(con, r, propLabel, null); }
/** * List outgoing edges from this resource to other resources, using the property label passed * as argument. If limit is bigger than 0, then a maximum of limit triples will be returned. * Otherwise, all triples will be returned. * <p/> * The parameter propLabel is in the form of a SeRQL or SPARQL id. It can take one of the following * values: * <ul> * <li>a URI enclosed in < >, e.g. <http://www.example.com/myProp></li> * <li>a uri prefix, followed by a colon and the property name, e.g. ex:myProp</li> * <li>the value "null", in which case all outgoing edges are listed regardless of their label * (wildcard)</li> * </ul> * The result will be an iterable that allows to iterate over Statements. * * @param propLabel the label of the property to be queried, or null for wildcard * @return an iterable over the Statements that are outgoing edges of this resource */ public static Iterable<? extends Statement> listOutgoing(RepositoryConnection con, Resource r, String propLabel) throws RepositoryException { return listOutgoing(con, r, propLabel, null); }
/** * List the objects that are related to this resource through a certain property * * @return a list of all outgoingnodes dependent of a space */ public static Iterable<? extends Value> listOutgoingNodes(RepositoryConnection con, Resource r, String propLabel, URI context) throws RepositoryException { return Iterables.transform( listOutgoing(con,r,propLabel,context), new Function<Statement, Value>() { @Override public Value apply(Statement input) { return input.getObject(); } } ); }
/** * List the objects that are related to this resource through a certain property * * @return a list of all outgoingnodes dependent of a space */ public static Iterable<? extends Value> listOutgoingNodes(RepositoryConnection con, Resource r, String propLabel, URI context) throws RepositoryException { return Iterables.transform( listOutgoing(con,r,propLabel,context), new Function<Statement, Value>() { @Override public Value apply(Statement input) { return input.getObject(); } } ); }
for (Value cP : cPos) { if (cP instanceof URI || cP instanceof BNode) { for (Statement t : listOutgoing(con, (Resource) cP)) { pathCandidates.add(t.getPredicate());
apj.setRoles(a.getRoles()); for (Statement t : ResourceUtils.listOutgoing(conn,conn.getValueFactory().createURI(a.getWebId()))) { String prop = t.getPredicate().stringValue(); if (prop.startsWith(Namespaces.NS_FOAF)) {
apj.setRoles(a.getRoles()); for (Statement t : ResourceUtils.listOutgoing(conn,conn.getValueFactory().createURI(a.getWebId()))) { String prop = t.getPredicate().stringValue(); if (prop.startsWith(Namespaces.NS_FOAF)) {