tasks/rdfstore/index.js
function(value)
{
   var rval = false;
   
   // Note: A value is a subject if all of these hold true:
   // 1. It is an Object.
   // 2. It is not a literal.
   // 3. It has more than 1 key OR any existing key is not '@id'.
   if(value !== null && value.constructor === Object && !('@literal' in value))
   {
      var keyCount = Object.keys(value).length;
      rval = (keyCount > 1 || !('@id' in value));
   }
   
   return rval;
}
function(value)
{
   var rval = false;
   
   // Note: A value is a subject if all of these hold true:
   // 1. It is an Object.
   // 2. It is not a literal.
   // 3. It has more than 1 key OR any existing key is not '@id'.
   if(value !== null && value.constructor === Object && !('@literal' in value))
   {
      var keyCount = Object.keys(value).length;
      rval = (keyCount > 1 || !('@id' in value));
   }
   
   return rval;
}
function ( value ) { var rval = false ; // Note: A value is a subject if all of these hold true: // 1. It is an Object. // 2. It is not a literal. // 3. It has more than 1 key OR any existing key is not '@id'. if ( value !== null && value . constructor === Object && ! ( '@literal' in value ) ) { var keyCount = Object . keys ( value ) . length ; rval = ( keyCount > 1 || ! ( '@id' in value ) ) ; } return rval ; }
Gets whether or not a value is a subject with properties.

@param value the value to check.

@return true if the value is a subject with properties, false if not.
Gets whether or not a value is a subject with properties .