NIHVIVO-438 modification of code to include export feature of ontologies.
This commit is contained in:
parent
e707c4ee6b
commit
27d91f67c4
1 changed files with 10 additions and 0 deletions
|
@ -4,6 +4,7 @@ package edu.cornell.mannlib.vitro.webapp.controller.jena;
|
|||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -84,6 +85,15 @@ public class JenaExportController extends BaseEditController {
|
|||
|
||||
boolean limitToInferred = false;
|
||||
Model inferenceModel = null;
|
||||
|
||||
if(!subgraphParam.equalsIgnoreCase("tbox") && !subgraphParam.equalsIgnoreCase("abox") && !subgraphParam.equalsIgnoreCase("full")){
|
||||
ontologyURI = subgraphParam;
|
||||
subgraphParam = "tbox";
|
||||
char[] uri = ontologyURI.toCharArray();
|
||||
ontologyURI="";
|
||||
for(int i =0; i < uri.length-1;i++)
|
||||
ontologyURI = ontologyURI + uri[i];
|
||||
}
|
||||
if ( "inferred".equals(assertedOrInferredParam) ) {
|
||||
limitToInferred = true;
|
||||
inferenceModel = getOntModelFromAttribute( INFERENCES_ONT_MODEL_ATTR, vreq );
|
||||
|
|
Loading…
Add table
Reference in a new issue