@bahulneel/rdflib
Version:
an RDF library for node.js. Suitable for client and server side.
39 lines (30 loc) • 1.19 kB
JavaScript
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
import _inherits from "@babel/runtime/helpers/inherits";
import _defineProperty from "@babel/runtime/helpers/defineProperty";
import Node from './node-internal';
import { DefaultGraphTermType } from './types';
/** The RDF default graph */
var DefaultGraph =
/*#__PURE__*/
function (_Node) {
_inherits(DefaultGraph, _Node);
function DefaultGraph() {
var _this;
_classCallCheck(this, DefaultGraph);
_this = _possibleConstructorReturn(this, _getPrototypeOf(DefaultGraph).call(this, ''));
_defineProperty(_assertThisInitialized(_this), "termType", DefaultGraphTermType);
return _this;
}
_createClass(DefaultGraph, [{
key: "toCanonical",
value: function toCanonical() {
return this.value;
}
}]);
return DefaultGraph;
}(Node);
export { DefaultGraph as default };