Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDF to iCalendar converter as a Web Service #203

Open
jmvanel opened this issue Jan 29, 2019 · 0 comments
Open

RDF to iCalendar converter as a Web Service #203

jmvanel opened this issue Jan 29, 2019 · 0 comments

Comments

@jmvanel
Copy link
Owner

jmvanel commented Jan 29, 2019

Scala API

def graph2iCalendar(graph: Rdf#Graph): String

Web Service

It is meant to be widely reusable. The rdfData URL can be any URL returning RDF as Turtle, JSON-LD or RDF/XML, subjected to standard content negotiation, as usual in SF. So it can also be a SPARQL endpoint GET URL with a specific query.

/icalendar?url=rdfData
jmvanel added a commit that referenced this issue Feb 17, 2019
…ql2 #203

TESTED with wget --save-headers --header='Accept: text/calendar' 'http://localhost:9000/sparql2?query=PREFIX+schema%3A+%3Chttp%3A%2F%2Fschema.org%2F%3E%0D%0APREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0ACONSTRUCT+%0D%0AWHERE+%7B%0D%0A++%3Fs+rdf%3Atype+schema%3AEvent+.%0D%0A++%3Fs+%3Fp+%3Fo+.%0D%0A%7D+%0D%0ALIMIT+44'

TODO the resulting .ics file is refused by Google Calendar !
jmvanel added a commit that referenced this issue Feb 19, 2019
…, con:participant; format long text according to ICal specification
jmvanel added a commit that referenced this issue Feb 19, 2019
jmvanel added a commit that referenced this issue Mar 17, 2019
…er "T" ; format Text: remove bad new line after SUMMARY
jmvanel added a commit that referenced this issue Mar 22, 2019
TODO accepted by online validator, but not by Google Agenda
jmvanel added a commit that referenced this issue Mar 22, 2019
…DTEND date ; FIX ATTENDEE;CN= with or without MAILTO

- passed ical4j Java parser:
	./gradlew run --args /tmp/local.ics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant