I need to automatically generate (from a database) an XHTML document marked up with RDFa or some other microformat, it doesn't matter which one. How can I best do this using Java? I have been using Jena to output RDF/XML but it doesn't do RDFa unfortunately.
2
There are 2 best solutions below
Related Questions in XHTML
- google apps script: convert an .xls (XHTML) to gsheet spreadsheet
- Flying saucer not considering lower priority font family
- HTML code with MathJax SVG does not work in XHTML
- epub3 href footnote link not calling shouldOverrideUrlLoading in WebViewClient
- Why does this happen in HTML while creating tables?
- How to change spacing before 1st and after last element in a list
- XSLT matching xhtml namespace
- Saving HTML as XHTML in .NET 6
- I have an svg image, is there is a way to convert it into canvas but not very complecated code, i want to use that in dynamic size chart
- How to tell if loaded page is true XML-processed XHTML or not, using devtools or JavaScript snippet
- Pass value from text file into a html paragraph
- Issues displaying svgs in html
- Shopping Cart Application using Java
- How can I get WebStorm to lookup entity references in my DTD files
- Can you embed an .ics file contents and link to it in html, ideally without using javascript?
Related Questions in RDF
- How to structure json-ld for export/import
- RDF: when a property is used the thing in the object position is a literal of datatype X
- In the UML diagram, in the Class diagram, what does stereotype mean <<compound>>?
- Expansive path expressions in quoted triples?
- RDFlib serlialization in json-ld without blank node ids
- How to extract the language tags from Turtle RDF data?
- ontology versioning: Link both versionIRI#MyClassIRI and ontologyIRI#MyClass123 to same resource in rdf / owl
- uniqueness of owl n-ary relationships
- How to select only direct subClassOf element in a GraphDB custom ruleset?
- Is it possible to directly run SPARQL query against webpages with JSON-LD data?
- Weird behavior on LIMIT and OFFSET when querying DBPedia
- Querying Office for National Statistics data using SPARQL
- Problem with Java when using Apache Jena Fuseki?
- Expressing in json-ld the type of a value embedded within an id
- Filter RDF file using SPARQL
Related Questions in RDFA
- Structured data for chord progression
- How to use rdfdistiller via curl
- schema.org Failing to Validate Dublin Core Meta in 'meta' and 'link' elements
- How to describe derived work on CC BY-SA 3.0 using RDFa
- Parsing HTML+RDFa in RDFLib
- An example of using CSVW in RDFa?
- Remove structured data with JavaScript doesn't work for Google bot
- Getting a reference to the document containing the microdata where specific RDF knowledge came from
- Author Element not display with RDFa
- What is the proper RDFa syntax for an Organization logo?
- Is RDFa `<meta>` without a `name` attribute compatible with HTML5?
- In a <meta>, what is the correct Dublin Core property name to express distinctly spatial and temporal coverage?
- Breadcrumblist last item error from Structured Data Testing Tool: "A value for the item field is required."
- OpenGraph structured data listed as "Unspecified Type" in Google SDTT
- Appending HTML+RDFa with JavaScript
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The reason that Jena doesn't provide an RDFa writer is that the whole point of RDFa is to be embedded in some other (human-readable) web page. I think your main option is to use something like Velocity or Freemarker to produce the pages with embedded calls out to Jena to get the appropriate RDF statements. You'll have to handle the RDFa encoding yourself. For testing, you could read your web pages back in using an RDFa reader to see if you get back the right set of triples, but really that's only half the story. You also need to test whether the page expresses the user-intent you want by enabling inline metadata, and that's much harder to test.