question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

if schemaurl is a uri-ref, how do I get it?

See original GitHub issue

Suppose I get a cloudevent with a schemaurl set to /spec/v0.1/data/schema/events.json

This is valid from the specs point of view. But from an event consumer, they are out of luck to know how to fetch that schema data.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
deissnerkcommented, Mar 7, 2019

I understand that it’s especially unfortunate because of the url part, but source is a piece of metadata that needs to be handled generically by middleware. A well-defined way for de-referencing relative uri references would be helpful. Otherwise you might end up with “if-then-else” logic in event routers. I realize that this is off-topic in this issue, though. 🤔

1reaction
n3wscottcommented, Mar 7, 2019

This makes sense for source because source is just metadata about the entity that produced the event, but schemarul is provided for the consumers benefit to understand the payload. And yet… they can not. Also, schemaurl is a uri-ref 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

RDF terms in rdflib — rdflib 6.2.0 documentation
Those that are part of core RDF concepts are: IRIs , Blank Node and Literal ... RDFLib's class for representing IRIs/URIs is called...
Read more >
updating graph with multiple programs automatically ...
from rdflib import Graph, Literal, BNode, RDF,URIRef from rdflib ... is run it prepends the path of the location of turtle file to...
Read more >
Source code for swh.indexer.metadata_dictionary.npm
URIRef ('git+https://github.com/foo/bar.git') """ if ( isinstance(d, dict) and isinstance(d.get("type"), str) and isinstance(d.get("url"), ...
Read more >
URL - Schema.org Type
Property On Types Description asin Demand or. Offer or. Product bankAccountType BankAccount The type of a bank account. childTaxon Taxon Closest child taxa of the taxon...
Read more >
Event
Package event provides primitives to work with CloudEvents ... Time // GetDataSchema returns the CloudEvents schema URL (if any) from the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found