/** * {@inheritDoc} */ @Override public ResIterator listResourcesWithProperty(Property p, long o) { return super.object.listResourcesWithProperty(p, o); }
/** * {@inheritDoc} */ @Override public ResIterator listResourcesWithProperty(Property p, double o) { return super.object.listResourcesWithProperty(p, o); }
/** * {@inheritDoc} */ @Override public ResIterator listResourcesWithProperty(Property p) { return super.object.listResourcesWithProperty(p); }
/** * {@inheritDoc} */ @Override public ResIterator listResourcesWithProperty(Property p, RDFNode o) { return super.object.listResourcesWithProperty(p, o); }
/** * {@inheritDoc} */ @Override public ResIterator listResourcesWithProperty(Property p, boolean o) { return super.object.listResourcesWithProperty(p, o); }
/** * {@inheritDoc} */ @Override public ResIterator listResourcesWithProperty(Property p, char o) { return super.object.listResourcesWithProperty(p, o); }
/** * {@inheritDoc} */ @Override public ResIterator listResourcesWithProperty(Property p, float o) { return super.object.listResourcesWithProperty(p, o); }
/** * {@inheritDoc} */ @Override public ResIterator listResourcesWithProperty(Property p, Object o) { return super.object.listResourcesWithProperty(p, o); }
public ResIterator listResourcesWithProperty(Property p, char o) { return model.listResourcesWithProperty(p, o); }
public ResIterator listResourcesWithProperty(Property p, long o) { return model.listResourcesWithProperty(p, o); }
public ResIterator listResourcesWithProperty(Property p, double o) { return model.listResourcesWithProperty(p, o); }
public ResIterator listResourcesWithProperty(Property p) { return model.listResourcesWithProperty(p); }
public ResIterator listResourcesWithProperty(Property p, float o) { return model.listResourcesWithProperty(p, o); }
public ResIterator listResourcesWithProperty(Property p, RDFNode o) { return model.listResourcesWithProperty(p, o); }
public ResIterator listResourcesWithProperty(Property p, boolean o) { return model.listResourcesWithProperty(p, o); }
public ResIterator listResourcesWithProperty(Property p, Object o) { return model.listResourcesWithProperty(p, o); }
@Test( groups = {SHOULD}, description = "LDPC representations SHOULD NOT use RDF container " + "types rdf:Bag, rdf:Seq or rdf:List.") @SpecTest( specRefUri = LdpTestSuite.SPEC_URI + "#ldpc-nordfcontainertypes", testMethod = METHOD.AUTOMATED, approval = STATUS.WG_APPROVED) public void testNoRdfBagSeqOrList() { Model containerModel = getAsModel(getResourceUri()); assertFalse(containerModel.listResourcesWithProperty(RDF.type, RDF.Bag) .hasNext(), "LDPC representations should not use rdf:Bag"); assertFalse(containerModel.listResourcesWithProperty(RDF.type, RDF.Seq) .hasNext(), "LDPC representations should not use rdf:Seq"); assertFalse(containerModel.listResourcesWithProperty(RDF.type, RDF.List).hasNext(), "LDPC representations should not use rdf:List" ); }
/** Answer a Set of the objects in the full expansion of the assembler specification <code>model</code> which have rdf:type <code>type</code>, which <i>must</i> be a subtype of <code>ja:Object</code>. */ public static Set<Resource> findAssemblerRoots( Model model, Resource type ) { return fullModel( model ).listResourcesWithProperty( RDF.type, type ).toSet(); }
ResIterator res = model.listResourcesWithProperty(rdfTypeProp, node); List<Resource> resList = res.toList(); for(Resource r: resList)
/** * Create a named APIResultSet fixture without trying to do all that that very complex * class does. * @return Mocked {@link APIResultSet} */ public static APIResultSet mockResultSet( JUnitRuleMockery context, final Model apiResultsModel, final Model apiObjectModel, final Model apiMetadataModel, String mockName ) { final APIResultSet results = context.mock( APIResultSet.class, mockName ); final APIResultSet.MergedModels mm = context.mock( APIResultSet.MergedModels.class, mockName + "-mm" ); final Resource root = apiResultsModel.listResourcesWithProperty( RDF.type, API.Page ).next(); context.checking(new Expectations() {{ atLeast(0).of (results).getModels(); will( returnValue( mm ) ); atLeast(0).of (mm).getMergedModel(); will( returnValue( apiResultsModel )); atLeast(0).of (mm).getObjectModel(); will( returnValue( apiObjectModel)); atLeast(0).of (mm).getMetaModel(); will( returnValue( apiMetadataModel )); atLeast(0).of (results).getRoot(); will( returnValue( root ) ); }}); return results; }