{"id":63511,"date":"2026-11-14T14:08:00","date_gmt":"2026-11-14T14:08:00","guid":{"rendered":"https:\/\/www.europesays.com\/netherlands\/63511\/"},"modified":"2026-11-14T14:08:00","modified_gmt":"2026-11-14T14:08:00","slug":"how-nxp-performs-event-driven-rdf-imports-to-amazon-neptune-using-aws-lambda-and-sparql-update-load","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/netherlands\/63511\/","title":{"rendered":"How NXP performs event-driven RDF imports to Amazon Neptune using AWS Lambda and SPARQL UPDATE LOAD"},"content":{"rendered":"<p>For manufacturers it\u2019s important to track transformations and transfers of products as they travel through the supply chain.<\/p>\n<p>In the event of quality issues, the ability to quickly and accurately identify a defective product and gather data for root cause analysis and containment is critical.<\/p>\n<p><a href=\"https:\/\/www.nxp.com\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">NXP Semiconductors<\/a> has been working to improve its product traceability capabilities and they have several products that support single device level traceability.<\/p>\n<p>There are billions of devices produced in many variants at various sites across the globe, using multiple IT systems. Connecting key data and manufacturing events at the individual device level opens up many opportunities: from continual quality improvement to overall efficiency and extra supply chain security.<\/p>\n<p>A key component in this approach is the development of an RDF (Resource Description Framework) <a href=\"https:\/\/aws.amazon.com\/neptune\/knowledge-graphs-on-aws\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Knowledge Graph<\/a>.<\/p>\n<p>NXP originally built a solution using a custom-built RDF data store. This solution required a high level of maintenance and couldn\u2019t scale to work with the variety and quantity of data, so they partnered with <a href=\"https:\/\/semaku.com\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Semaku<\/a> to build a better solution. They migrated from their custom-built RDF data store to <a href=\"https:\/\/aws.amazon.com\/neptune\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Amazon Neptune<\/a>, a fast, fully managed database service that supports RDF and graph use-cases such as knowledge graphs.<\/p>\n<p>By integrating key data from multiple systems into a common linked data model, NXP\u2019s traceability Knowledge Graph is continuously growing.<\/p>\n<p>In this post, we describe a solution for this use case. We describe how NXP ingests data into <a href=\"https:\/\/aws.amazon.com\/s3\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Amazon Simple Storage Service<\/a> (Amazon S3) buckets as CSV or XML files, which triggers <a href=\"https:\/\/aws.amazon.com\/lambda\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">AWS Lambda<\/a> functions using <a href=\"https:\/\/docs.aws.amazon.com\/AmazonS3\/latest\/userguide\/NotificationHowTo.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Amazon S3 Event Notifications<\/a>. The Lambda functions transform the CSV and XML data into RDF data, then load the new RDF data into Neptune by using the <a href=\"https:\/\/docs.aws.amazon.com\/neptune\/latest\/userguide\/bulk-load.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Neptune bulk loader<\/a> and <a href=\"https:\/\/docs.aws.amazon.com\/neptune\/latest\/userguide\/sparql-api-reference-update-load.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">SPARQL UPDATE LOAD<\/a>.<\/p>\n<p>The following image illustrates the supply chain process and entities stored in Neptune.<\/p>\n<p><a href=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image001.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-25771\" src=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image001.png\" alt=\"\" width=\"1920\" height=\"1010\"\/><\/a><\/p>\n<p>       Solution overview<\/p>\n<p>We use the following services in our solution:<\/p>\n<p>        <a href=\"https:\/\/aws.amazon.com\/lambda\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">AWS Lambda<\/a> \u2013 A serverless, event-driven compute service that lets you run code for virtually any type of application or backend service without provisioning or managing servers. You can trigger Lambda from over 200 AWS services and software as a service (SaaS) applications, and only pay for what you use.<br \/>\n        <a href=\"https:\/\/aws.amazon.com\/neptune\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Amazon Neptune<\/a> \u2013 A fast, reliable, and fully managed graph database service that makes it easy to build and run applications that work with highly connected datasets. It is purpose-built and optimized for storing billions of relationships and querying graph data with millisecond latency.<br \/>\n        <a href=\"https:\/\/aws.amazon.com\/sqs\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Amazon Simple Queue Service (Amazon SQS)<\/a> \u2013 A fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications.<br \/>\n        <a href=\"https:\/\/aws.amazon.com\/s3\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Amazon S3<\/a> \u2013 An object storage service that offers industry-leading scalability, data durability, security, and performance.<\/p>\n<p>       Semantic Web Standards<\/p>\n<p>Amazon Neptune supports <a href=\"https:\/\/www.w3.org\/2001\/sw\/wiki\/Main_Page\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Semantic Web Standard<\/a>s which include <a href=\"https:\/\/en.wikipedia.org\/wiki\/Resource_Description_Framework\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">RDF 1.1<\/a> and <a href=\"https:\/\/www.w3.org\/TR\/sparql11-query\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">SPARQL 1.1<\/a>.<\/p>\n<p>Because of this, NXP can use an existing tool (<a href=\"https:\/\/tarql.github.io\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Tarql<\/a>) to generate RDF data and insert it into Neptune. Data about both production lots and individual devices can then be queried using SPARQL, the standard query language for RDF compatible databases, such as Neptune.<\/p>\n<p>       Conversion to RDF<\/p>\n<p>Initial data flows consist of scheduled incremental extracts in CSV format that are ingested into Amazon S3. We use Amazon S3 Event Notifications to invoke a Lambda function that takes care of converting the CSV data to RDF using <a href=\"https:\/\/tarql.github.io\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Tarql<\/a>.<\/p>\n<p>Streaming data comes in via XML files, generated during the manufacturing process. This data is also put into an S3 bucket, which triggers another Lambda function that performs the following tasks:<\/p>\n<p>        Convert the XML into <a href=\"https:\/\/www.w3.org\/TR\/rdf-syntax-grammar\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">RDF\/XML<\/a> (an XML syntax for encoding RDF) using <a href=\"https:\/\/www.w3.org\/TR\/xslt-30\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">XSLT 3.0<\/a>.<br \/>\n        Convert the RDF\/XML into <a href=\"https:\/\/www.w3.org\/TR\/n-triples\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">N-Triples<\/a> (a line-based, plain text format for encoding RDF) using <a href=\"https:\/\/jena.apache.org\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Apache Jena<\/a> (an open-source Java framework for working with RDF).<br \/>\n        Compress the N-Triples with Gzip.<br \/>\n        Write the compressed N-Triples back to Amazon S3.<\/p>\n<p>Currently, we have on average eight of these XML messages arriving per minute, but we expect that to increase as more manufacturing steps and locations are integrated.<\/p>\n<p><a href=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image002.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-25772\" src=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image002.png\" alt=\"\" width=\"1430\" height=\"526\"\/><\/a><\/p>\n<p>The RDF graphs from the incremental CSV extracts result in thousands to tens of millions of RDF statements. An RDF statement is a triple that may be considered a single database record, encompassing one edge and the origin and destination of that edge. See the following example:<\/p>\n<p>          :isFromSubstrateID  \u201cPK8661-16EF\u201d<\/p>\n<p>The streaming XML messages are typically around a thousand RDF statements.<\/p>\n<p>The following diagram illustrates our Neptune ingestion architecture.<\/p>\n<p><a href=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image003.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-25773\" src=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image003.png\" alt=\"\" width=\"841\" height=\"521\"\/><\/a><\/p>\n<p>       Loading RDF to Neptune using the bulk loader<\/p>\n<p>As part of the migration to Neptune, NXP implemented a process using the Neptune bulk loader to import these N-Triples files into Neptune. For more information about using the bulk loader, refer to <a href=\"https:\/\/docs.aws.amazon.com\/neptune\/latest\/userguide\/load-api-reference-load.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Neptune Loader Command<\/a>.<\/p>\n<p>An <a href=\"https:\/\/en.wikipedia.org\/wiki\/Named_graph\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">RDF named graph<\/a> (a graph partitioning mechanism for RDF) per S3 object is used to maintain a clear provenance in Neptune of which statements originate from which S3 object. This promotes idempotency and means it\u2019s easy to drop and reload specific named graphs.<\/p>\n<p>The example is very similar to the real data that is loaded when represented in another RDF format, <a href=\"https:\/\/www.w3.org\/TR\/trig\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">TriG<\/a>, which supports specifying the named graph within the data file itself.<\/p>\n<p><a href=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image004.png\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-25787 size-full aligncenter\" src=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image004.png\" alt=\"\" width=\"500\" height=\"445\"\/><\/a><\/p>\n<p>RDF named graphs provide a way of contextualizing a subset of the graph. Named graphs in RDF can be directly interacted with a SPARQL 1.1 Query or using <a href=\"https:\/\/docs.aws.amazon.com\/neptune\/latest\/userguide\/sparql-graph-store-protocol.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">SPARQL 1.1 Graph Store HTTP Protocol<\/a> in Neptune.<\/p>\n<p>The initial implementation sends an S3 event notification, <a href=\"https:\/\/docs.aws.amazon.com\/serverless-application-model\/latest\/developerguide\/sam-property-function-s3.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">using suffix filters<\/a>, to an SQS queue upon creation of a Gzipped N-Triples object in Amazon S3. Lambda automatically polls the queue and invokes the function for each message in the queue. The function creates a Neptune bulk load job for each S3 object, where each object is loaded to a distinct named graph in Neptune. This process is depicted in the following figure.<\/p>\n<p><a href=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image005.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-25775\" src=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image005.png\" alt=\"\" width=\"953\" height=\"172\"\/><\/a><\/p>\n<p>Although the Neptune bulk loader has a queuing mechanism, this has a maximum queue size of 64 jobs. Given the rate at which the event-based XML messages arrive, we can easily fill the bulk loader queue when a long-running import is in progress. The SQS queue acts as a pre-queue such that if the Lambda function fails to create a bulk load job, it exits with an error code and the message isn\u2019t deleted from the SQS queue. We configure a visibility timeout of 5 minutes in the SQS queue, after which the message becomes visible and is reprocessed. This gives Neptune the chance to work through the bulk load queue and makes sure all files are eventually loaded. The logs are monitored for error codes, so that we can take action should a message continue to error indefinitely.<\/p>\n<p>Based on empirical data gathered running in the production environment for several weeks, we observed this implementation can import up to 18 of the smaller event files per minute under sustained load pressure. Interestingly, the size of the Neptune writer instance doesn\u2019t seem to influence this rate, as can be observed in the following figure (blue indicates messages being processed, orange shows messages queued for processing).<\/p>\n<p><a href=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image006.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-25776\" src=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image006.png\" alt=\"\" width=\"1125\" height=\"165\"\/><\/a><\/p>\n<p>This figure shows the total approximate number of messages (visible and not visible) in the SQS queue (objects for which bulk load jobs aren\u2019t yet created). During this period, two large incremental files were imported, which the bulk import jobs take a few hours to complete. Because the event-based XML messages continue to arrive while these imports are in progress, this causes a large queue to form in Amazon SQS. When those large imports complete, the maximum import rate is represented by the downward slope gradient after large incremental files were imported. The left peak was loaded using an r5.24xlarge writer instance, and the right peak was loaded using an r5.large write instance.<\/p>\n<p>Given that the import rate is higher than the current eight files per minute rate at which the event-based messages arrive in Amazon S3, the queue is naturally emptied given sufficient time. However, if the arrival rate increases above the import rate, the Neptune import won\u2019t be able to keep up. To be able to handle the increased rate we expect, we wanted to find a way to increase the import rate.<\/p>\n<p>       Improving concurrency of imports<\/p>\n<p>To improve concurrency, first we need to understand any bottlenecks in the current process. The Neptune bulk loader breaks up large files for concurrent loading or can load multiple files in a job concurrently. However, for the smaller files, there is no concurrent processing happening within a single bulk load job. We assume the smaller files aren\u2019t broken up into smaller chunks, and therefore don\u2019t benefit from the concurrent loading. Essentially, only a single thread is used for these bulk load jobs. Because the processing of the bulk loader jobs is serialized, this fits the observation that using larger instances doesn\u2019t improve import rates. We needed to find a way to enable the imports to be processed concurrently.<\/p>\n<p>We considered a couple of possible solutions:<\/p>\n<p>        Process multiple event-based objects in a single bulk load job<br \/>\n        Use SPARQL UPDATE LOAD to import the event-based objects rather than the Neptune bulk loader because it may be more efficient for small individual RDF files<\/p>\n<p>       Option 1: Process multiple event-based objects in a single bulk load job<\/p>\n<p>For this option, we need to consider named graph management. When using the Neptune bulk loader, the named graph is specified when the HTTP request is made to initiate the load. Because we want to load data containing multiple named graphs, we can\u2019t specify the named graph when initiating the load.<\/p>\n<p>To overcome this issue, we can convert the RDF data to a format that supports named graph\u2019s within the data itself.<\/p>\n<p>The RDF format <a href=\"https:\/\/www.w3.org\/TR\/n-quads\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">N-Quads<\/a> adds a fourth element (the named graph) to an N-Triple.<\/p>\n<p>For example, we can start with the following N-Triple:<\/p>\n<p>         :isFromSubstrateID \u201cPK8661-16EF\u201d<\/p>\n<p>And it becomes an N-Quad:<\/p>\n<p>         :isFromSubstrateID \u201cPK8661-16EF\u201d <\/p>\n<p>Therefore, to keep the graph-per-S3-object approach, the data needs to be converted to N-Quads prior to import.<\/p>\n<p>We did consider changing the topology of the named graphs to, for example, load all files for a given date into the same named graph, but it quickly became apparent that we needed to keep the graph-per-S3-object approach because the context of the event can be relevant when querying, which is represented by the graph boundary.<\/p>\n<p>An added benefit to having the named graphs specified in the data (using N-Quads) is that all the data can be combined into a small number of large files, rather than a large number of small files. The Neptune bulk loader is most efficient and fastest when loading a small number of large files.<\/p>\n<p>This would be possible to implement using batch processing of messages from the SQS queue. However, we felt this batch processing would add complexity and latency in the processing, which we prefer to keep as close to real time as possible.<\/p>\n<p>       Option 2: Use SPARQL UPDATE LOAD to import the event-based objects<\/p>\n<p>For this option, we prototyped a Python script using a Neptune notebook. The script uses the Boto3 library to generate presigned URLs for the S3 object and constructs a SPARQL UPDATE procedure in the following form:<\/p>\n<p>        sparql<br \/>\nDROP SILENT GRAPH &lt;{s3-object-uri}&gt; ;<br \/>\nLOAD &lt;{signed-url}&gt; INTO GRAPH &lt;{s3-object-uri}&gt;<\/p>\n<p>With this approach, we observed that imports using SPARQL UPDATE LOAD complete individually about 10 times faster than for the same file loaded via the Neptune bulk loader (around 300 milliseconds vs. 3,000 milliseconds).<\/p>\n<p>Based on this finding, we extended the Lambda function to support both the Neptune bulk loader and SPARQL UPDATE LOAD protocols to import data to Neptune.<\/p>\n<p>By adding a SIZE_THRESHOLD environment variable, it\u2019s now possible to control which protocol is used for the import based on the size of the file being imported. Files below the threshold (which we configured as 200,000 bytes) are imported using SPARQL UPDATE LOAD, and those above the threshold using the bulk loader.<\/p>\n<p>The event-based files and some of the incremental files are below this threshold and able to import synchronously using SPARQL UPDATE LOAD. The larger (incremental) files are imported using the Neptune bulk loader, which is able to effectively split those into chunks for improved concurrency.<\/p>\n<p>We feel this approach strikes a good balance to use the right protocol for the right job. The new approach also means we never come close to filling the Neptune bulk loader queue, so we could remove the SQS pre-queue. So now the S3 event notification is asynchronously processed by Lambda when an RDF file is created, as depicted in the following figure.<\/p>\n<p><a href=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image007.png\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-25778 aligncenter\" src=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/DDBLOG-2515-image007.png\" alt=\"\" width=\"621\" height=\"145\"\/><\/a><\/p>\n<p>Neptune is able to process multiple SPARQL requests in parallel. The maximum number of queries that can be running at one time is determined by the number of worker threads assigned, which is generally set to twice the number of vCPUs that are available. For more information, refer to <a href=\"https:\/\/docs.aws.amazon.com\/neptune\/latest\/userguide\/access-graph-queuing.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Query queuing in Amazon Neptune<\/a>.<\/p>\n<p>We\u2019re using a db.r5.large writer instance, so we have up to four threads available. To avoid keeping all those threads busy, we limit concurrency on the Lambda function to two concurrent invocations. This ensures there are always some threads available to handle queries and any bulk loads.<\/p>\n<p>With this configuration, we can import up to 450 event-based files per minute. This provides plenty of headroom for the immediate future.<\/p>\n<p>However, we were interested to see if the speedup with an increased number of processors would follow <a href=\"https:\/\/en.wikipedia.org\/wiki\/Amdahl%27s_law)%20or%20%5bGustafson&#039;s%20law%5d(https:\/en.wikipedia.org\/wiki\/Gustafson%27s_law\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Amdahl\u2019s law<\/a> or <a href=\"https:\/\/en.wikipedia.org\/wiki\/Gustafson%27s_law\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Gustafson\u2019s law<\/a>.<\/p>\n<p>To do this measurement, we varied the size of the Neptune writer instance and concurrency of the Lambda function to match the number of available worker threads. The experiment was conducted by reprocessing 88,422 files, representing 2 weeks\u2019 worth of production data. The data was imported to a database, which was reset at the start of every run, using Neptune engine version 1.1.0.0. Reprocessing was done by copying the files to the current location in Amazon S3 using the <a href=\"https:\/\/aws.amazon.com\/console\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">AWS Management Console<\/a> in order to retrigger the S3 event notifications. For the experiments, we first queued all the S3 event notifications using Amazon SQS, to ensure the rate of moving the files in Amazon S3 didn\u2019t become the bottleneck, and the Lambda function read from the queue. The following table summarizes our findings.<\/p>\n<p>          Instance Type<br \/>\n          vCPU<br \/>\n          Concurrency<br \/>\n          Total Duration (hh:mm:ss)<br \/>\n          Peak Rate (invoc\/min)<br \/>\n          Average Rate (invoc\/min)<br \/>\n          Average duration (ms)<br \/>\n          Speedup Factor<\/p>\n<p>          db.r5.large<br \/>\n          2<br \/>\n          2<br \/>\n          04:09:17<br \/>\n          450<br \/>\n          355<br \/>\n          159<br \/>\n          1.98<\/p>\n<p>          db.r5.large<br \/>\n          2<br \/>\n          4<br \/>\n          02:27:04<br \/>\n          834<br \/>\n          601<br \/>\n          229<br \/>\n          3.35<\/p>\n<p>          db.r5.xlarge<br \/>\n          4<br \/>\n          8<br \/>\n          01:06:49<br \/>\n          1663<br \/>\n          1323<br \/>\n          237<br \/>\n          7.37<\/p>\n<p>          db.r5.2xlarge<br \/>\n          8<br \/>\n          16<br \/>\n          00:29:08<br \/>\n          3419<br \/>\n          3035<br \/>\n          222<br \/>\n          16.91<\/p>\n<p>          db.r5.4xlarge<br \/>\n          16<br \/>\n          32<br \/>\n          00:16:14<br \/>\n          6125<br \/>\n          5447<br \/>\n          255<br \/>\n          30.36<\/p>\n<p>          db.r5.8xlarge<br \/>\n          32<br \/>\n          64<br \/>\n          00:11:13<br \/>\n          8910<br \/>\n          7883<br \/>\n          346<br \/>\n          43.93<\/p>\n<p>          db.r5.12xlarge<br \/>\n          48<br \/>\n          96<br \/>\n          00:10:49<br \/>\n          9351<br \/>\n          8175<br \/>\n          501<br \/>\n          45.56<\/p>\n<p>          db.r5.16xlarge<br \/>\n          64<br \/>\n          128<br \/>\n          00:11:10<br \/>\n          8618<br \/>\n          7966<br \/>\n          715<br \/>\n          44.13<\/p>\n<p>          db.r5.24xlarge<br \/>\n          96<br \/>\n          192<br \/>\n          00:11:45<br \/>\n          8240<br \/>\n          7525<br \/>\n          1015<br \/>\n          41.94<\/p>\n<p>The following figure plots the speedup factor (log) and average duration of the Lambda function (linear) vs. concurrency (log).<\/p>\n<p><a href=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/image008.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-25779\" src=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/image008.png\" alt=\"\" width=\"873\" height=\"647\"\/><\/a><\/p>\n<p>We can see the relation between speedup and concurrency is linear up to 32 concurrent queries before maxing out at around 45 times speedup with higher concurrencies. According to Amdahl\u2019s law, this would indicate that nearly 100% of the process can be parallelized. However, at the higher concurrencies, it appears the speedup is ultimately limited by some serial part of the program. The increase in the duration of the Lambda function at those higher concurrencies indicates that those import requests are being <a href=\"https:\/\/docs.aws.amazon.com\/neptune\/latest\/userguide\/access-graph-queuing.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">queued by Neptune<\/a>.<\/p>\n<p>       Conclusion<\/p>\n<p>In this post, we showed how to build a Knowledge Graph of billions of devices to quickly and accurately identify defective products and gather data for root causes, in order to contain and identify defective components, which is vital for supply chain efficiency and product reliability.<\/p>\n<p>We demonstrated that Neptune is able to handle high near-real-time write pressure from event-based messages without the need to batch\/club imports into a bulk load job and any latency that would introduce. For files larger than 200 KB, the Neptune bulk loader is a better choice.<\/p>\n<p>The transactional nature of Neptune gives clarity if individual SPARQL UPDATE requests have succeeded or failed. Understanding the capabilities of the service and which import protocol is applicable for your use case is important to achieve optimal performance.<\/p>\n<p>To further simplify the process, NXP is exploring <a href=\"https:\/\/aws.amazon.com\/blogs\/database\/introducing-graph-store-protocol-support-for-amazon-neptune\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">SPARQL 1.1 Graph Store Protocol<\/a> (GSP) support in Neptune.<\/p>\n<p>Using GSP for this solution, we could add the RDF data to the body of an HTTP request, and POST or PUT that data into Neptune via HTTP directly from the Lambda function.<\/p>\n<p>       About the authors<\/p>\n<p style=\"clear: both\"> <a href=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/John.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-25783 alignleft\" src=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/John.jpg\" alt=\"\" width=\"100\" height=\"133\"\/><\/a> John Walker is co-founder and director of Semaku. John is passionate about bringing the benefits of linked data and semantic technologies into the enterprise world. Semaku was founded in 2013 and offers information management services leveraging cloud and graph technologies to help clients see the big picture with a unified approach.<\/p>\n<p style=\"clear: both\"><a href=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/Onno2022-AWSBlog.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-25784 alignleft\" src=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/Onno2022-AWSBlog.jpg\" alt=\"\" width=\"100\" height=\"118\"\/><\/a>Onno Buijs is a Director at NXP Semiconductors responsible for Quality Information Systems. Onno has more than 20 years of experience leading IT solution development programs and transformations in the high-tech industry.<\/p>\n<p style=\"clear: both\"><a href=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/Javy.jpeg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-25782 alignleft\" src=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/Javy.jpeg\" alt=\"\" width=\"100\" height=\"102\"\/><\/a>Javy de Koning is a Senior Solutions Architect for Amazon Web Services. He has 15 years of experience designing enterprise scale distributed systems. His passion is designing microservice architectures that can take full advantage of the cloud and DevOps toolchains.<\/p>\n<p style=\"clear: both\"><a href=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/charles-ivie-100.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-25781 alignleft\" src=\"https:\/\/www.europesays.com\/netherlands\/wp-content\/uploads\/2026\/11\/charles-ivie-100.jpg\" alt=\"\" width=\"100\" height=\"132\"\/><\/a>Charles Ivie is a Senior Graph Architect with the Amazon Neptune team at AWS. He has been designing, implementing and leading solutions using knowledge graph technologies for over ten years.<\/p>\n","protected":false},"excerpt":{"rendered":"For manufacturers it\u2019s important to track transformations and transfers of products as they travel through the supply chain.&hellip;\n","protected":false},"author":2,"featured_media":63512,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[62],"tags":[166],"class_list":["post-63511","post","type-post","status-publish","format-standard","has-post-thumbnail","category-nxp","tag-nxp"],"_links":{"self":[{"href":"https:\/\/www.europesays.com\/netherlands\/wp-json\/wp\/v2\/posts\/63511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/netherlands\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/netherlands\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/netherlands\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/netherlands\/wp-json\/wp\/v2\/comments?post=63511"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/netherlands\/wp-json\/wp\/v2\/posts\/63511\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/netherlands\/wp-json\/wp\/v2\/media\/63512"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/netherlands\/wp-json\/wp\/v2\/media?parent=63511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/netherlands\/wp-json\/wp\/v2\/categories?post=63511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/netherlands\/wp-json\/wp\/v2\/tags?post=63511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}