Skip to content

Commit

Permalink
Merge pull request #249 from geneontology/issue-126-source-url-comment
Browse files Browse the repository at this point in the history
Add contributor_link comment for #126
  • Loading branch information
dustine32 authored May 10, 2023
2 parents be540fc + a7143b1 commit 700b047
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,15 @@ void convert(
go_cam.path2bgjournal = blazegraph_output_journal;
go_cam.blazegraphdb = blaze;
go_cam.name = getBioPaxName(currentPathway);
go_cam.contributor_link = contributor_link;
}
//make the OWL individual representing the pathway so it can be used below
OWLNamedIndividual p = go_cam.makeAnnotatedIndividual(GoCAM.makeGoCamifiedIRI(null, model_id));
//annotate it with any provenance comments
for(String comment : pathway_source_comments) {
go_cam.addComment(p, comment);
}
go_cam.addComment(p, go_cam.contributor_link);
//define it (add types etc)
definePathwayEntity(go_cam, currentPathway, model_id, expand_subpathways, add_pathway_components);
//get and set parent pathways
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ public class GoCAM {
//for convenience
String name;
String default_namespace_prefix;
String contributor_link;

public GoCAM() throws OWLOntologyCreationException {
ontman = OWLManager.createOWLOntologyManager();
Expand Down Expand Up @@ -488,6 +489,7 @@ Set<OWLAnnotation> getDefaultAnnotations(){
annos.add(df.getOWLAnnotation(contributor_prop, df.getOWLLiteral(this.base_contributor)));
annos.add(df.getOWLAnnotation(date_prop, df.getOWLLiteral(this.base_date)));
annos.add(df.getOWLAnnotation(provided_by_prop, df.getOWLLiteral(this.base_provider)));
annos.add(df.getOWLAnnotation(rdfs_comment, df.getOWLLiteral(this.contributor_link)));
return annos;
}

Expand Down

0 comments on commit 700b047

Please sign in to comment.