@bahulneel/rdflib
Version:
an RDF library for node.js. Suitable for client and server side.
41 lines (32 loc) • 1.1 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 { EmptyTermType } from './types';
/**
* An empty node
*/
var Empty =
/*#__PURE__*/
function (_Node) {
_inherits(Empty, _Node);
function Empty() {
var _this;
_classCallCheck(this, Empty);
_this = _possibleConstructorReturn(this, _getPrototypeOf(Empty).call(this, ''));
_defineProperty(_assertThisInitialized(_this), "termType", EmptyTermType);
return _this;
}
_createClass(Empty, [{
key: "toString",
value: function toString() {
return '()';
}
}]);
return Empty;
}(Node);
export { Empty as default };