frontend/js/rdfquery.js
function (bindings) {
      var t = this;
      if (!this.isFixed()) {
        t = this.fill(bindings);
      }
      if (t.isFixed()) {
        return $.rdf.triple(t.subject, t.property, t.object, { source: this.toString() });
      } else {
        return null;
      }
    }
function (bindings) {
      var t = this;
      if (!this.isFixed()) {
        t = this.fill(bindings);
      }
      if (t.isFixed()) {
        return $.rdf.triple(t.subject, t.property, t.object, { source: this.toString() });
      } else {
        return null;
      }
    }
function ( bindings ) { var t = this ; if ( ! this . isFixed ( ) ) { t = this . fill ( bindings ) ; } if ( t . isFixed ( ) ) { return $ . rdf . triple ( t . subject , t . property , t . object , { source : this . toString ( ) } ) ; } else { return null ; } }
Creates a new triple based on the bindings passed to the pattern, if possible.
@param {Object} bindings An object holding the variable bindings to be used to replace any placeholders in the pattern. These bindings are of the type held by the {@link jQuery.rdf} object.
@returns {null|jQuery.rdf.triple} A new {@link jQuery.rdf.triple} object, or null if not all the variable placeholders in the pattern are specified in the bindings. The {@link jQuery.rdf.triple#source} of the generated triple is set to the string value of this pattern.
@example
pattern = $.rdf.pattern('?thing a ?class');
// triple is a new triple '<> a foaf:Person'
triple = pattern.triple({
thing: $.rdf.resource('<>'),
class: $.rdf.resource('foaf:Person', { namespaces: ns })
});
Creates a new triple based on the bindings passed to the pattern if possible .