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
- Display string on page xhtml
- Dynamic 2D arrayList table not working after refreshing in primefaces?
- Ajax h:link doesn't call listener function
- Difference between adding <![CDATA[ in page source v/s dynamically using javascript
- Sessionscoped managed bean not saving variables jsf
- Instance variable increment in bean on button click JSF 2.2
- Centering an image in a div
- Remove certain fields using jQuery
- Is there a better way to semantically code up an FAQ in XHTML 1.0 Transitional?
- How to display Arabic unicode text in page that retrieved from database
- display top 10 dynamic records in two column(Each 5 records)
- to integrate java program into jsf
- How to prevent the vertical scroll of this div?
- Command not found: [html2xhtml] exception happens when using Html2Xhtml library
- How to get grid background color for web-page?
Related Questions in RDF
- Trying to understand "expected types" and "type.property.schema" properties in Freebase
- Reasoning and datatypes of Literals
- Query multiple models within same Dataset in TDB Jena
- SPARQL Group-Concat not working
- Convert a statement with adjective in RDF triple
- importing rdf in 4store
- Resources on OWL and Building Ontologies
- sparql how to search on label's value without the language indicator
- Converting database to RDF using D2RQ
- Count resources having a property of a certain type in SPARQL
- Fuseki s-query Query cancelled
- OWL. How to express that siblings has common parent?
- HACluster Config for Stardog
- Selecting nodes with conditions
- range function in sparql
Related Questions in RDFA
- Microdata, RDFa or JSON-LD Appropriate or best usage?
- RDFa OfferCatalog Syntax
- can you have multiple RDFa's on a website if the company has multiple locations?
- Why does Drupal Schema.org module include RDFa instead of microdata?
- Microdata vs RDFa
- Round-trippable encoding of XML dialects within HTML5
- Parsing RDFa in html/xhtml?
- Do search engines see a "webpage.xml" file as xml? How does that impact microdata?
- Using Java to write RDFa
- How does HTML5 support RDFa?
- Getting a reference to the document containing the microdata where specific RDF knowledge came from
- Remove structured data with JavaScript doesn't work for Google bot
- Facebook share strips og:title with "#" and "@"
- actual webpage using rdfa or microdata?
- rdfa microdata rich snippets and google search results
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 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.