
// Handle node, amd, and global systems
if (typeof exports !== 'undefined') {
    if (typeof module !== 'undefined' && module.exports) {
        exports = module.exports = $rdf;
    }
    exports.$rdf = $rdf;
}
else {
    if (typeof define === 'function' && define.amd) {
        define('rdflib', function() {
            return $rdf;
        });
    }

    // Leak a global regardless of module system
    root['$rdf'] = $rdf;
}


// Handle node, amd, and global systems
if (typeof exports !== 'undefined') {
    if (typeof module !== 'undefined' && module.exports) {
        exports = module.exports = $rdf;
    }
    exports.$rdf = $rdf;
}
else {
    if (typeof define === 'function' && define.amd) {
        define([], function() {
            return $rdf;
        });
    }

    // Leak a global regardless of module system
    root['$rdf'] = $rdf;
}

Fix AMD define to work with RequireJS
Fix AMD define to work with RequireJS
