data-hub | Data delivery & consumption platform for Pimcore | Continuous Deployment library
kandi X-RAY | data-hub Summary
kandi X-RAY | data-hub Summary
Pimcore Datahub is Pimcore’s data delivery & consumption platform. It integrates different input & output channel technologies into a simple & easy-to-configure system on top of Pimcore.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- build mutations
- Webx service provider .
- Resolve a listing
- Add field collections
- Build SQL condition .
- Get configuration .
- Set a value for an object
- Get Query field configuration from config
- Modifies a workspace row by type .
- Process field collection .
data-hub Key Features
data-hub Examples and Code Snippets
Community Discussions
Trending Discussions on data-hub
QUESTION
I'm unsure of the correct syntax to add Ordnance Survey vector tiles to a React-Leaflet application.
The example code at https://labs.os.uk/public/os-data-hub-examples/os-vector-tile-api/vts-3857-basic-map loads some vector tile libraries from Mapbox:
...ANSWER
Answered 2022-Jan-24 at 23:10The answer came from Ted Piotrowski, the developer of the react-leaflet-vector-tile-layer library. I needed to add the transformRequest
parameter using this syntax:
QUESTION
Is there a way to filter out documents in marklogic based on a date field?
Something like:
...ANSWER
Answered 2022-Jan-13 at 22:42It is possible to issue such a query, as long as there is a date or dateTime being tracked and indexed.
For any MarkLogic database, there is a database option to enable "maintain last modified", which will set and maintain a document property prop:last-modified
that can be indexed and range-queries applied.
Your example table was "data-hub-STAGING". If you are using a MarkLogic Data Hub, the datahubCreatedOn field is available with a dateTime
range index.
https://docs.marklogic.com/datahub/5.6/flows/about-flows.html#about-flows__pre_ay4_frh_ypb
For every content object outputted by a Data Hub step, regardless of the step type, Data Hub will add the following document metadata keys and values to the document wrapped by the content object:
- datahubCreatedOn = the date and time at which the document is written
Of course, any other date/dateTime element, JSON field, or document property can also be indexed and then used to filter docs as well.
Then the appropriate range query can be applied to a search in JavaScript, XQuery, Optic, SQL, etc.
For example, in JavaScript searching by field datahubCreatedOn
with cts.fieldRangeQuery()
:
QUESTION
I downloaded a geojson file of Iraq's electrical grid from EnergyData. You can download the file yourself here and visit the webpage here
I tried to use geojsonio::geojson_read
to read the file into R, but it threw errors. Another user helpfully pointed out that the file format provided by the Energy Data website is incorrect and does not comply with geojson format, so the filename is misleading. So they recommended I use jsonlite::read_json
. While that function does read the file into R, it's not a spatial object. It's a multi-level list. I also tried sf::st_read
but the object is a messy data frame. I need my final object to be a spatial lines data frame, so I can merge and crop it with another spatial lines objects and write out the resulting shapefile. But when I try sp::SpatialLinesDataFrame
I can't index into the object correctly to connect the lines in the right order. I need the object in R to look like the picture on the web page, and instead its just a hot mess.
Here's my code:
...ANSWER
Answered 2021-Dec-29 at 20:58This is long, because the solution is mostly to dig around and figure out how you want to work with this file. There are a few potential issues here:
- Like I mentioned in your first post, the file might be malformed as far as the structure for a GeoJSON file. Some methods of reading it throw a warning that the last line is incomplete; a trailing empty line is part of the expected structure in json files.
- The
nodes
andinterconnection
attributes are arrays, and I think R functions don't know what to do with those;sf
functions know to read these as list-columns but that might not be available forgeojsonio
ones. - There's a mix of geometry types.
That last point is the big one, because it prevents you from using sp::Spatial*
classes—those are only for single geometry types (SpatialGrid
, SpatialPolygons
, etc.). This file has both points and lines mixed together, so you need something like sf
that can hold mixed geometry types.
A few ways I tried reading this, some of which return lists that you could further dig into, some return sf
objects:
QUESTION
Can we delete a document from markLogic staging based on a condition? Something like delete from data-hub-STAGING where name="John"
Sample documents as below:
...ANSWER
Answered 2021-Dec-09 at 15:01You can use cts.uris()
with a cts.jsonPropertyValueQuery()
to obtain the list of document URIs that have a JSON property named name
with the value "John", and then iterate over the list of URIs and call xdmp.documentDelete()
QUESTION
I'm trying to write a JavaScript cts query to query only unique values from a key from a JSON document based on another key. i.e, similar to a query like: select distinct(name) from data-hub-staging where source='source1'
ANSWER
Answered 2021-Nov-30 at 20:42The name
values are not being de-duplicated by the Set because they are text()
nodes. You need to get the .valueOf()
those text nodes and then the strings will be de-duplicated.
QUESTION
I'm trying to write a javaScript cts query to query a key from a json document based on another key. i.e, similar to a query like select name from data-hub-staging where source='source1'
...ANSWER
Answered 2021-Nov-29 at 11:58The purpose of cts.search
is to run a search that returns entire documents. The cts.jsonPropertyValueQuery
identifies a criterion for selecting a document. After you've run the search, you'll be able to pull out whatever you'd like from that document. I think this should do it:
QUESTION
I wanted to know if we can write an XQuery in MarkLogic to get count of JSON documents with a key as "source1"
The staging table has multiple collections with JSON documents with below structure:
...ANSWER
Answered 2021-Oct-26 at 13:18With a JavaScript module, you can use a cts.jsonPropertyValueQuery()
in order to target the documents that have the source
property with the value source1
, and then use cts.estimate()
to get the count of docs:
QUESTION
Our servers are not allowed to access internet, and I need to create and use a local repository ( the C:\Plugins directory ) located on the server having its MarkLogic Data Hub v4.1.1 upgraded.
We need to modify the local build.gradle file to use the repository containing the following 2 plugins ( shown in "plugins" section ).
This is current build.gradle file:
...ANSWER
Answered 2021-Feb-22 at 08:23You need quite a few pieces to get it fully working in offline mode:
- local maven repo in
buildscripts
andrepositories
- a copy of gradlew that has been edited to use a local dir for gradle home, and has its own copy of gradle dist (which kind of beats its purpose, but not entirely)
- and to make plugins work properly, you also need a settings.gradle with
pluginManagement.repositories
pointing to local maven as well
This PR in grove-ml-gradle gives best overview of necessary changes to my opinion: https://github.com/marklogic-community/grove-ml-gradle/pull/2/files
HTH!
QUESTION
I am trying to query the Google ADH API (https://developers.google.com/ads-data-hub/reference/rest/v1/customers.adsDataLinks/list)
For reference I get a response sample as:
...ANSWER
Answered 2021-Feb-17 at 21:25I think filter is currently only supported on text fields, I have tested title and email. Date filters are not working with same error above. Also to note, text search is finicky, works only when using wildcards example:
QUESTION
I have a problem getting gradle to get out to the internet from behind a proxy while trying to perform a MarkLogic data hub upgrade.
I execute the following code as a root level user :
./gradlew hubUpgrade -i
which gives output :
...ANSWER
Answered 2021-Feb-16 at 13:43This is unlikely to be a MarkLogic or Gradle issue, more likely Kerberos cannot resolve your Proxy host to a valid address in the /etc/krb5.conf configuration files. You will need to check that your Kerberos configuration is set up to serve domains based on the Proxy server address.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install data-hub
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page