Skip to content

Commit

Permalink
Updated api paramater description for /biopax-url-to-json as disscuss…
Browse files Browse the repository at this point in the history
…ed in #14. Updated some comments. Added pc2.owl file to gitignore.
  • Loading branch information
metincansiper committed Mar 23, 2021
1 parent 2deafd8 commit dbad67f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ build
out
*.log
*.out
src/test/resources/pc2.owl
4 changes: 2 additions & 2 deletions src/main/java/factoid/converter/BiopaxToFactoid.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private JsonObject makeEntityJson(Entity entity) {
}

// if the entity has no grounding return null
// which will signal that the related document must be skipped as well
// which will signal that the related interaction must be skipped as well
if ( xref == null || org == null ) {
return null;
}
Expand All @@ -232,7 +232,7 @@ else if ( originalDb.equals("hgnc symbol") || originalDb.equals("refseq") ) {
else {
logger.warning("Unhandled xref database: " + originalDb);
// if the entity db is not handled return null
// which will signal that the related document must be skipped as well
// which will signal that the related interaction must be skipped as well
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/factoid/web/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public String biopaxToFactoid(
produces = "application/json"
)
public String biopaxUrlToFactoid(
@ApiParam("URL of a BioPAX RDF/XML file") @RequestBody String url) {
@ApiParam("URL of a TAR-GZ compressed BioPAX RDF/XML file") @RequestBody String url) {
BiopaxToFactoid converter = new BiopaxToFactoid();
try {
String body = getContentFromUrl(url);
Expand Down

0 comments on commit dbad67f

Please sign in to comment.