Package org.semanticweb.owlapi.util

Examples of org.semanticweb.owlapi.util.SimpleShortFormProvider


    private ShortFormProvider sfp;


    public DLSyntaxHTMLOntologyStorer() {
        sfp = new SimpleShortFormProvider();
    }
View Full Code Here


public class ProfilesTest {
    public static void main(String[] args) {

        try {
            DefaultPrefixManager pm = new DefaultPrefixManager("http://protege.cim3.net/file/pub/ontologies/tambis/tambis-full.owl#");
            SimpleShortFormProvider sfp = new SimpleShortFormProvider();
//            SimpleRenderer ren = new SimpleRenderer();
            ManchesterOWLSyntaxOWLObjectRendererImpl ren = new ManchesterOWLSyntaxOWLObjectRendererImpl();
            ren.setShortFormProvider(sfp);
            ToStringRenderer.getInstance().setRenderer(ren);
View Full Code Here

  private ShortFormProvider shortFormProvider;

  public LatexObjectVisitor(LatexWriter writer, OWLDataFactory df) {
    this.writer = writer;
    this.df = df;
    shortFormProvider = new SimpleShortFormProvider();
    subject = df.getOWLThing();
  }
View Full Code Here

    private ShortFormProvider shortFormProvider;

    public LatexRenderer(OWLOntologyManager owlOntologyManager) {
        super(owlOntologyManager);
        shortFormProvider = new SimpleShortFormProvider();
    }
View Full Code Here

    private StringBuilder buffer;

    private OWLObject focusedObject;

    public DLSyntaxObjectRenderer() {
        this.shortFormProvider = new SimpleShortFormProvider();
        this.iriShortFormProvider = new SimpleIRIShortFormProvider();
        this.buffer = new StringBuilder();
    }
View Full Code Here

    private ShortFormProvider sfp;


    public DLSyntaxHTMLOntologyStorer() {
        sfp = new SimpleShortFormProvider();
    }
View Full Code Here


    protected OBOFlatFileRenderer(OWLOntologyManager owlOntologyManager) {
        super(owlOntologyManager);
        relationshipHandler = new OBORelationshipGenerator(this);
        sfp = new SimpleShortFormProvider();
    }
View Full Code Here

    private WriterDelegate writerDelegate;


    public ManchesterOWLSyntaxOWLObjectRendererImpl() {
        writerDelegate = new WriterDelegate();
        ren = new ManchesterOWLSyntaxObjectRenderer(writerDelegate, new SimpleShortFormProvider());
    }
View Full Code Here

            if(renderingValue instanceof OWLLiteral) {
                result = ((OWLLiteral) renderingValue).getLiteral();
            }
            else {
                // Had this as an instance variable, but creating a new instance each time is definitely thread safe.
                SimpleShortFormProvider simpleShortFormProvider = new SimpleShortFormProvider();
                result = URLDecoder.decode(simpleShortFormProvider.getShortForm(owlEntity), "UTF-8");
            }
            if(result.contains(" ")) {
                result = getQuoted(result);
            }
            return result;
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.util.SimpleShortFormProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.