for (RDFNode n: s.m.listObjects().toList()) if (n.isURIResource()) sb.append( "\n " ).append("<").append( n.asNode().getURI() ).append(">");
/** Add properties to the view, setting the property chains and possibly the labelled-describe label property URI. */ private View addViewProperties( Model m, Set<Resource> seen, Resource tRes, View v ) { setDescribeLabelIfPresent( tRes, v ); addViewPropertiesByString( v, m.listObjectsOfProperty( tRes, API.properties ).toList() ); addViewPropertiesByResource( v, m.listObjectsOfProperty( tRes, API.property ).toList() ); for (RDFNode n: tRes.listProperties( API.include ).mapWith( Statement.Util.getObject ).toList()) { if (n.isResource() && seen.add( (Resource) n )) addViewProperties( m, seen, (Resource) n, v ); } return v; }
List<RDFNode> sourceObjects = sourceObjectIter.toList();
for (RDFNode seeAlsoValue : seeAlsoIterator.toList()) { result.addSeeAlso(new URI(seeAlsoValue.asResource().getURI())); for (RDFNode licenseValue : licenseIterator.toList()) { result.addLicense(new URI(licenseValue.asResource().getURI())); for (RDFNode sameAsValue : sameAsIterator.toList()) { result.addSameAs(new URI(sameAsValue.asResource().getURI()));
private void extractDatatypes( Model m ) { List<Resource> dataTypes = m.listStatements( null, RDF.type, RDFS.Datatype ).mapWith( Statement.Util.getSubject ).toList(); for (Resource t: dataTypes) declareDatatype( t.getURI() ); for (Resource p: m.listSubjectsWithProperty( RDF.type, OWL.DatatypeProperty ).toList()) { for (RDFNode t: m.listObjectsOfProperty( p, RDFS.range ).toList()) { declareDatatype( t.asResource().getURI() ); } } }
List<RDFNode> nodes = state.model.listObjectsOfProperty(agg, DC.creator).toList(); nodes.addAll(state.model.listObjectsOfProperty(agg, DCTerms.creator).toList()); if (nodes.size() > 0) { if (nodes.size() == 2) { List<RDFNode> nodes = state.model.listObjectsOfProperty(agg, contactPerson).toList(); nodes.addAll(state.model.listObjectsOfProperty(agg, contactPerson).toList()); if (nodes.size() > 0) { addContactInfo(atts, attNamePrefix, Metadata.CONTACT_INFO, nodes); for (RDFNode node : state.model.listObjectsOfProperty(agg, AGGREGATES_PROPERTY).toList()) { if (!node.isResource()) { continue;