hylar/core/ParsingInterface.js
function(fact) {
        var subject, predicate, object;

        /*if (fact.fromTriple !== undefined) {
            return fact.fromTriple;
        }*/

        if(fact.falseFact) {
            return '';
        }

        subject = this.parseStrEntityToTurtle(fact.subject);
        predicate = this.parseStrEntityToTurtle(fact.predicate);
        object = this.parseStrEntityToTurtle(fact.object);

        if (subject && predicate && object) {
            return subject + ' ' + predicate + ' ' + object + ' . ';
        } else {
            return '';
        }
    }
function(fact) {
        var subject, predicate, object;

        /*if (fact.fromTriple !== undefined) {
            return fact.fromTriple;
        }*/

        if(fact.falseFact) {
            return '';
        }

        subject = this.parseStrEntityToTurtle(fact.subject);
        predicate = this.parseStrEntityToTurtle(fact.predicate);
        object = this.parseStrEntityToTurtle(fact.object);

        if (subject && predicate && object) {
            return subject + ' ' + predicate + ' ' + object + ' . ';
        } else {
            return '';
        }
    }
function ( fact ) { var subject , predicate , object ; /*if (fact.fromTriple !== undefined) {
            return fact.fromTriple;
        }*/ if ( fact . falseFact ) { return '' ; } subject = this . parseStrEntityToTurtle ( fact . subject ) ; predicate = this . parseStrEntityToTurtle ( fact . predicate ) ; object = this . parseStrEntityToTurtle ( fact . object ) ; if ( subject && predicate && object ) { return subject + ' ' + predicate + ' ' + object + ' . ' ; } else { return '' ; } }
Transforms a fact into turtle.
@param fact
@returns {string}
Transforms a fact into turtle .