/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(Name<?> id, String managerId, URI path) { return this.pHelper.withIndividual(id,managerId,path); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(Name<?> id, String managerId, String path) { return this.pHelper.withIndividual(id,managerId,path); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(Name<?> id, String managerId) { return this.pHelper.withIndividual(id,managerId); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(Name<?> id) { return this.pHelper.withIndividual(id); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(URI id) { return this.pHelper.withIndividual(id); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(String id) { return this.pHelper.withIndividual(id); }
/** * {@inheritDoc} */ @Override public IndividualPropertyHelper withIndividual(Term id) { return this.pHelper.withIndividual(id); }
private void addInferredTypes() { final PropertyHelper property=this.helper.property(RDF.TYPE); for(final String type:this.inferredTypes) { property.withIndividual(type); } }
private void addExternalIndividual(final URI externalIndividual) { this.item.property(this.property).withIndividual(externalIndividual); }
private static void addSubBuildDescription(IndividualPropertyHelper buildHeper, SubBuild subBuild) { buildHeper. property(TYPE). withIndividual(CI_SUB_BUILD_TYPE). property(CI_IS_PART_OF). withIndividual(IdentityUtil.parentBuildName(subBuild),BuildHandler.ID); }
private static void populateEnrichedData(final IndividualPropertyHelper helper, final ExecutionEnrichment enrichment) { final Optional<URI> branchResource = enrichment.branchResource(); if(branchResource.isPresent()) { helper. property(CI_FOR_BRANCH). withIndividual(branchResource.get()); } final Optional<URI> commitResource = enrichment.commitResource(); if(commitResource.isPresent()) { helper. property(CI_FOR_COMMIT). withIndividual(commitResource.get()); } }
private static void addCompositeBuildDescription(IndividualPropertyHelper buildHeper, CompositeBuild compositeBuild) { buildHeper. property(TYPE). withIndividual(CI_COMPOSITE_BUILD_TYPE); for(URI subBuild:compositeBuild.subBuilds()) { buildHeper. property(CI_INCLUDES_BUILD). withIndividual(IdentityUtil.subBuildName(subBuild),BuildHandler.ID); } }
private void addRelations(final String relation, final Collection<? extends K> elements) { final String managerId=managerId(); final PropertyHelper property=this.helper.property(relation); for(final K key:elements){ property.withIndividual(createName(key),managerId); } }
@Test public void testWithIndividualTerm() throws Exception { IndividualPropertyHelper result = sut.withIndividual(RDFS.CLASS); assertThat(result,instanceOf(IndividualPropertyHelperImpl.class)); }
@Test public void testWithIndividualURI() throws Exception { IndividualPropertyHelper result = sut.withIndividual(RDFS.CLASS.as(URI.class)); assertThat(result,instanceOf(IndividualPropertyHelperImpl.class)); }
@Test public void testWithIndividual$managedId() throws Exception { IndividualPropertyHelper result = sut.withIndividual(name("resourceName"),"managerId"); assertThat(result,instanceOf(IndividualPropertyHelperImpl.class)); }
@Test public void testWithIndividual$managedId$relativeId() throws Exception { IndividualPropertyHelper result = sut.withIndividual(name("resourceName"),"managerId","relativePath/"); assertThat(result,instanceOf(IndividualPropertyHelperImpl.class)); }
@Test public void testWithIndividual$managedId$relativeId$URI() throws Exception { IndividualPropertyHelper result = sut.withIndividual(name("resourceName"),"managerId",URI.create("relativePath/")); assertThat(result,instanceOf(IndividualPropertyHelperImpl.class)); }
@Test public void testWithIndividual$local() throws Exception { IndividualPropertyHelper result = sut.withIndividual(name("resourceName")); assertThat(result,instanceOf(IndividualPropertyHelperImpl.class)); }
@Test public void testWithIndividualString() throws Exception { IndividualPropertyHelper result = sut.withIndividual(RDFS.CLASS.qualifiedEntityName()); assertThat(result,instanceOf(IndividualPropertyHelperImpl.class)); }