public class ReportOperation extends Object
Constructor and Description |
---|
ReportOperation() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
getDefaultOptions()
Return a map from option name to default option value, for all the available report options.
|
static Report |
getReport(org.semanticweb.owlapi.model.OWLOntology ontology,
IOHelper ioHelper,
Map<String,String> options)
Given an ontology, an IOHelper, and a map of options, create a Report object and run the report
queries specified in a profile (from options, or default).
|
static Report |
getTDBReport(org.apache.jena.query.Dataset dataset,
Map<String,String> options)
Given a dataset and a map of options, create a Report object and run (on TDB dataset) the
report queries specified in a profile (from options, or default).
|
static Report |
getTDBReport(IOHelper ioHelper,
org.apache.jena.query.Dataset dataset,
Map<String,String> options)
Given a dataset and a map of options, create a Report object and run (on TDB dataset) the
report queries specified in a profile (from options, or default).
|
static Report |
getTDBReport(String inputPath,
Map<String,String> options)
Given an input path to an ontology and a map of options, create a Report object and run (on TDB
dataset) the report queries specified in a profile (from options, or default).
|
static boolean |
processReport(Report report,
String outputPath,
Map<String,String> options)
Given a Report, an output path, and a map of report options, process the Report results and
save the report to the output path.
|
static void |
report(org.semanticweb.owlapi.model.OWLOntology ontology,
IOHelper ioHelper)
Report on the ontology using the rules within the profile and print results.
|
static void |
report(org.semanticweb.owlapi.model.OWLOntology ontology,
IOHelper ioHelper,
Map<String,String> options)
Report on the ontology using the rules within the profile and print results.
|
static boolean |
report(org.semanticweb.owlapi.model.OWLOntology ontology,
IOHelper ioHelper,
String outputPath,
Map<String,String> options)
Given an ontology, an IOHelper, an output path (or null), and a map of options (or null),
report on the ontology using the rules within the profile specified by the options and write
results to the output path.
|
static boolean |
report(org.semanticweb.owlapi.model.OWLOntology ontology,
IOHelper ioHelper,
String profilePath,
String outputPath,
String format,
String failOn)
Given an ontology, an IOHelper, a profile path (or null), an output path (or null), a report
format (or null), and a level to fail on, report on the ontology using the rules within the
profile and write results to the output path.
|
static boolean |
report(org.semanticweb.owlapi.model.OWLOntology ontology,
IOHelper ioHelper,
String profilePath,
String outputPath,
String format,
String failOn,
boolean useLabels)
Given an ontology, an IOHelper, a profile path (or null), an output path (or null), a report
format (or null), a level to fail on, and a boolean indicating to use labels, report on the
ontology using the rules within the profile and write results to the output path.
|
static boolean |
report(org.semanticweb.owlapi.model.OWLOntology ontology,
String profilePath,
String outputPath,
String format,
String failOn)
Given an ontology, a profile path (or null), an output path (or null), and a report format (or
null) report on the ontology using the rules within the profile and write results to the output
path.
|
static boolean |
tdbReport(String inputPath,
String outputPath,
Map<String,String> options)
Given an input path, an output path (or null), and a map of options, report on the ontology
using the rules within the profile specified by the options and write results to the output
path.
|
public static Map<String,String> getDefaultOptions()
public static void report(org.semanticweb.owlapi.model.OWLOntology ontology, IOHelper ioHelper) throws Exception
ontology
- the OWLOntology to reportioHelper
- IOHelper to work with ontologyException
- on any reporting errorpublic static boolean report(org.semanticweb.owlapi.model.OWLOntology ontology, String profilePath, String outputPath, String format, String failOn) throws Exception
ontology
- OWLOntology to report onprofilePath
- user profile file path to use, or nulloutputPath
- string path to write report file to, or nullformat
- string format for the output report (TSV or YAML), or nullfailOn
- logging level to fail executionException
- on any errorpublic static boolean report(org.semanticweb.owlapi.model.OWLOntology ontology, IOHelper ioHelper, String profilePath, String outputPath, String format, String failOn) throws Exception
ontology
- OWLOntology to report onioHelper
- IOHelper to useprofilePath
- user profile file path to use, or nulloutputPath
- string path to write report file to, or nullformat
- string format for the output report (TSV or YAML), or nullfailOn
- logging level to fail executionException
- on any errorpublic static void report(org.semanticweb.owlapi.model.OWLOntology ontology, IOHelper ioHelper, Map<String,String> options) throws Exception
ontology
- the OWLOntology to reportioHelper
- IOHelper to work with ontologyoptions
- map of report optionsException
- on any reporting errorpublic static boolean report(org.semanticweb.owlapi.model.OWLOntology ontology, IOHelper ioHelper, String profilePath, String outputPath, String format, String failOn, boolean useLabels) throws Exception
ontology
- OWLOntology to report onioHelper
- IOHelper to useprofilePath
- user profile file path to use, or nulloutputPath
- string path to write report file to, or nullformat
- string format for the output report (TSV or YAML), or nullfailOn
- logging level to fail executionuseLabels
- if true, use labels for outputException
- on any errorpublic static boolean report(org.semanticweb.owlapi.model.OWLOntology ontology, IOHelper ioHelper, String outputPath, Map<String,String> options) throws Exception
ontology
- the OWLOntology to reportioHelper
- IOHelper to work with ontologyoutputPath
- string path to write report file to, or nulloptions
- map of report optionsException
- on any reporting errorpublic static Report getReport(org.semanticweb.owlapi.model.OWLOntology ontology, IOHelper ioHelper, Map<String,String> options) throws Exception
ontology
- OWLOntology to report onioHelper
- IOHelper to resolve labelsoptions
- Map of report optionsException
- on any reporting errorpublic static boolean tdbReport(String inputPath, String outputPath, Map<String,String> options) throws Exception
inputPath
- String path of ontology to loadoutputPath
- String path to write report file to, or nulloptions
- map of report optionsException
- on any reporting errorpublic static Report getTDBReport(String inputPath, Map<String,String> options) throws Exception
inputPath
- path to load triples to TDBoptions
- map of report optionsException
- on any loading, query, or reporting errorpublic static Report getTDBReport(org.apache.jena.query.Dataset dataset, Map<String,String> options) throws Exception
dataset
- TDB Dataset to perform Report operation onoptions
- Map of report optionsException
- on any reporting errorpublic static Report getTDBReport(IOHelper ioHelper, org.apache.jena.query.Dataset dataset, Map<String,String> options) throws Exception
ioHelper
- IOHelper to resolve IRIsdataset
- TDB Dataset to perform Report operation onoptions
- Map of report optionsException
- on any reporting errorpublic static boolean processReport(Report report, String outputPath, Map<String,String> options) throws IOException
report
- completed Report objectoutputPath
- path to save report tooptions
- Map of report optionsIOException
- on issue writing to fileCopyright © 2015–2020. All rights reserved.