frontend/js/rdfquery.js
function (triple) {
      var binding = {};
      binding = testResource(triple.subject, this.subject, binding);
      if (binding === null) {
        return null;
      }
      binding = testResource(triple.property, this.property, binding);
      if (binding === null) {
        return null;
      }
      binding = testResource(triple.object, this.object, binding);
      return binding;
    }
function (triple) {
      var binding = {};
      binding = testResource(triple.subject, this.subject, binding);
      if (binding === null) {
        return null;
      }
      binding = testResource(triple.property, this.property, binding);
      if (binding === null) {
        return null;
      }
      binding = testResource(triple.object, this.object, binding);
      return binding;
    }
function ( triple ) { var binding = { } ; binding = testResource ( triple . subject , this . subject , binding ) ; if ( binding === null ) { return null ; } binding = testResource ( triple . property , this . property , binding ) ; if ( binding === null ) { return null ; } binding = testResource ( triple . object , this . object , binding ) ; return binding ; }
Creates a new Object holding variable bindings by matching the passed triple against this pattern.
@param {jQuery.rdf.triple} triple A {@link jQuery.rdf.triple} for this pattern to match against.
@returns {null|Object} An object containing the bindings of variables (as specified in this pattern) to values (as specified in the triple), or <code>null</code> if the triple doesn't match the pattern.
pattern = $.rdf.pattern('?thing a ?class');
bindings = pattern.exec($.rdf.triple('<> a foaf:Person', { namespaces: ns }));
thing = bindings.thing; // the resource for this page
class = bindings.class; // a resource for foaf:Person
Creates a new Object holding variable bindings by matching the passed triple against this pattern .