@startinblox/core 0.19.15 → 0.19.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +24 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11689,9 +11689,33 @@ class Store {
11689
11689
  _getExpandedId(id2, context2) {
11690
11690
  return context2 && Object.keys(context2) ? ContextParser2.expandTerm(id2, context2) : id2;
11691
11691
  }
11692
+ /**
11693
+ * Returns the expanded predicate based on provided context or the base one.
11694
+ * @param property The property to expand
11695
+ * @param context Your current context
11696
+ * @returns The fully expanded term
11697
+ */
11692
11698
  getExpandedPredicate(property, context2) {
11699
+ if (!context2)
11700
+ return ContextParser2.expandTerm(property, base_context, true);
11693
11701
  return ContextParser2.expandTerm(property, context2, true);
11694
11702
  }
11703
+ /**
11704
+ * Returns the compacted IRI based on provided context or the base one.
11705
+ * @param property The property to compact
11706
+ * @param context Your current context
11707
+ * @returns The compacted term
11708
+ */
11709
+ getCompactedIri(property, context2) {
11710
+ if (!context2)
11711
+ return ContextParser2.compactIri(property, base_context, true);
11712
+ return ContextParser2.compactIri(property, context2, true);
11713
+ }
11714
+ /**
11715
+ * Check if the id is a local id
11716
+ * @param id - string
11717
+ * @returns boolean
11718
+ */
11695
11719
  _isLocalId(id2) {
11696
11720
  return id2.startsWith("store://local.");
11697
11721
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/core",
3
- "version": "0.19.15",
3
+ "version": "0.19.16",
4
4
  "description": "This is a series of web component respecting both the web components standards and the Linked Data Platform convention.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",