ubiware.core
Class ProduceN3Options

java.lang.Object
  extended by ubiware.core.ProduceN3Options

public class ProduceN3Options
extends java.lang.Object

Options for producing N3, those options are passed to SaplN3 when Producing an S-APL N3 String from beliefs of the agent. 23.6.2010

Author:
Michael Cochez for UBIWARE project

Field Summary
 boolean cleanContent
          Should certain content be cleaned from the output? Check SaplN3Producer implementation for what gets removed exactly.
static ProduceN3Options defaultOptions
           
 boolean includeRules
          Should rules be included in the output (The ones in sapl:Rule or sapl:MetaRule context? If false and the S-APL contains rules, "Contents are skipped" is added to the output instead of the rules.
 boolean indents
          Should the produced S-APL N3 code use indentation (More readable, more verbose)
 boolean useNameSpaces
          Should prefixes be used (true) or should the string contain the whole namespace name for every resource(false)
 
Constructor Summary
ProduceN3Options(boolean indents, boolean useNameSpaces)
          Identical to ProduceN3Options(indents, true, useNameSpaces, false)
ProduceN3Options(boolean indents, boolean includeRules, boolean useNameSpaces, boolean cleanContent)
          Create a options object for SaplN3 generation
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultOptions

public static ProduceN3Options defaultOptions

indents

public final boolean indents
Should the produced S-APL N3 code use indentation (More readable, more verbose)


includeRules

public final boolean includeRules
Should rules be included in the output (The ones in sapl:Rule or sapl:MetaRule context? If false and the S-APL contains rules, "Contents are skipped" is added to the output instead of the rules.


useNameSpaces

public final boolean useNameSpaces
Should prefixes be used (true) or should the string contain the whole namespace name for every resource(false)


cleanContent

public final boolean cleanContent
Should certain content be cleaned from the output? Check SaplN3Producer implementation for what gets removed exactly. Don't use this feature without knowing what it does!

Constructor Detail

ProduceN3Options

public ProduceN3Options(boolean indents,
                        boolean useNameSpaces)
Identical to ProduceN3Options(indents, true, useNameSpaces, false)

Parameters:
indents - Should indentation be used?
useNameSpaces - Should prefixes be used?

ProduceN3Options

public ProduceN3Options(boolean indents,
                        boolean includeRules,
                        boolean useNameSpaces,
                        boolean cleanContent)
Create a options object for SaplN3 generation

Parameters:
indents - Should indentation be used?
includeRules - Should rules be included in the result?
useNameSpaces - Should prefixes be used?
cleanContent - Should certain content be cleaned?