Package com.hp.hpl.jena.rdf.model

Examples of com.hp.hpl.jena.rdf.model.Resource.inModel()


    private void handleURI(String uriString, Model resultModel) throws HandlerException {
        Resource resource = model.createResource(uriString);
       
        if (HostCanonicalizerFilter.isAuthoritative(resource, model)) {
            ((Resource) resource.inModel(resultModel)).addProperty(RDF.type,
                    RWCF.AuthoritativelyServedResource);
        } else {
            ((Resource) resource.inModel(resultModel)).addProperty(RDF.type,
                    RDFS.Resource);
            boolean hasAggregator = false;
View Full Code Here


       
        if (HostCanonicalizerFilter.isAuthoritative(resource, model)) {
            ((Resource) resource.inModel(resultModel)).addProperty(RDF.type,
                    RWCF.AuthoritativelyServedResource);
        } else {
            ((Resource) resource.inModel(resultModel)).addProperty(RDF.type,
                    RDFS.Resource);
            boolean hasAggregator = false;
            ResIterator aggregatorIter = model.listSubjectsWithProperty(
                    AGGREGATOR.aggregated, resource);
            if (aggregatorIter.hasNext()) {
View Full Code Here

    Assert.assertEquals(r2.getModel(), m1);
    Assert.assertFalse(r1.isAnon());
    Assert.assertTrue(r2.isAnon());
    /* */
    Assert.assertEquals(r1.inModel(m2).getModel(), m2);
    Assert.assertEquals(r2.inModel(m2).getModel(), m2);
    /* */
    Assert.assertEquals(r1, r1.inModel(m2));
    Assert.assertEquals(r2, r2.inModel(m2));
  }

View Full Code Here

    /* */
    Assert.assertEquals(r1.inModel(m2).getModel(), m2);
    Assert.assertEquals(r2.inModel(m2).getModel(), m2);
    /* */
    Assert.assertEquals(r1, r1.inModel(m2));
    Assert.assertEquals(r2, r2.inModel(m2));
  }

  public void testIsAnon()
  {
    final Model m = ModelHelper.modelWithStatements(this, "");
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.