rdfa

How to use RDFa “vocab” within XHTML

牧云@^-^@ 提交于 2019-12-08 07:09:04
问题 I'm trying to get this (simple) webpage done for my assignment and it needs to pass through http://validator.w3.org/ It also needs to use RDFa. However no matter what I do, the RDFa vocab never gets passed by the validator. Here's what I got: <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML+RDFa 1.0//EN' 'http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd'> <body vocab="http://xmlns.com/foaf/0.1/"> What am I doing wrong? 回答1: The vocab attribute is defined in RDFa 1.1, but with your current DOCTYPE, you

Unable to resolve NoClassDefFoundError for Jena IRIFactory

走远了吗. 提交于 2019-12-08 04:11:14
问题 Below is the stacktrace of the error log I'm getting. If someone can tell what exactly could be causing this because as per the stacktrace I've everything in place. Exception in thread "main" java.lang.NoClassDefFoundError: com/hp/hpl/jena/iri/IRIFactory at net.rootdev.javardfa.uri.IRIResolver.<init>(IRIResolver.java:26) at org.odftoolkit.odfdom.pkg.rdfa.SAXRDFaParser.createInstance(SAXRDFaParser.java:57) at org.odftoolkit.odfdom.pkg.OdfFileDom.initialize(OdfFileDom.java:217) at org

Is this use of structured data incompatible with JSON-LD?

不打扰是莪最后的温柔 提交于 2019-12-08 03:41:54
问题 StackOverflow has some good comparisons of Microdata, RDFa, and JSON-LD, especially in answers by "unor" in 2014, 2015, 2015, and 2016. Google specifically states "Google recommends using JSON-LD for structured data whenever possible." But when I look at the page source of a Google search, the very first content of the page is: <!doctype html> <html itemscope="" itemtype="http://schema.org/SearchResultsPage" lang="en"> The itemscope and itemtype attributes in the <html> tag are microdata. So

Using Schema.org itemprop on Facebook OG meta tags

走远了吗. 提交于 2019-12-06 11:43:56
问题 Right now I'm using itemprop COMBINED with Facebook Open Graph <meta> tags like the following: <html class="no-js" itemscope="itemscope" itemtype="http://schema.org/WebPage"> // ... <meta property="og:type" content="website" /> <meta itemprop="name" property="og:title" content="My Title" /> <meta itemprop="image" property="og:image" content="http://example.com/socialimage.jpg" /> <meta itemprop="url" property="og:url" content="http://example.com" /> <meta itemprop="description" property="og

Using Schema.org itemprop on Facebook OG meta tags

回眸只為那壹抹淺笑 提交于 2019-12-04 16:41:06
Right now I'm using itemprop COMBINED with Facebook Open Graph <meta> tags like the following: <html class="no-js" itemscope="itemscope" itemtype="http://schema.org/WebPage"> // ... <meta property="og:type" content="website" /> <meta itemprop="name" property="og:title" content="My Title" /> <meta itemprop="image" property="og:image" content="http://example.com/socialimage.jpg" /> <meta itemprop="url" property="og:url" content="http://example.com" /> <meta itemprop="description" property="og:description" content="My description" /> <meta property="og:site_name" content="My Site"/> Is this

HTML5 and RDFa support

匆匆过客 提交于 2019-12-04 10:47:17
问题 I'm about to introduce the Open Graph protocol to an existing HTML5 Web application and I'd like to include the necessary RDFa data without introducing any unnecessary crud. I've looked at the HTML+RDFa 1.1 draft and comparing it with Facebook's Open Graph protocol documentation, I just need to set the lang attribute on the html element and it's HTML5 ready: <html lang="en"> <head xmlns:og="http://opengraphprotocol.org/schema/"> <title>The Rock (1996)</title> <meta property="og:title" content

Rich Snippets: rel=“nofollow” and RDFa

天涯浪子 提交于 2019-12-03 21:59:19
问题 I'm using Rich Snippets to markup my content according to the collections on schema.org. I am using RDFa Lite to do so and am now having a problem with the rel attribute. Some of my links do have the rel="nofollow" attribute/value. As RDFa Lite is a subset of RDFa, the rel attribute gets recognised as additional markup. Please see this upload to Google's Structured Data Testing Tool for the extracted data for the following markup: <div vocab="http://schema.org/" typeof="SportsTeam"> <span

What is the relationship between RDF, RDFa, Microformats and Microdata

巧了我就是萌 提交于 2019-12-03 04:52:33
问题 I've done quite a bit of research but I can't understand the exact relationship between the 3. Also, now that W3C has officially recognised RDFa, would you recommend it over Microdata, taking into consideration that it matches Microdata's features and more? 回答1: <sarcasm>I can't imagine what you find so confusing</sarcasm> (edit: these tags were invisible before) Very briefly: Microformats A way to use html pages as both a human readable document and machine readable data , without repetition

Rich snippet is not showing for http://purl.org/goodrelations/

社会主义新天地 提交于 2019-12-02 19:49:20
问题 My site is https://www.liteshop.com.au/content/olight-h15s-wave-rechargeable-led-headlamp We implemented rich snippets on my site seven weeks ago but still Google does not show on search. Testing tool shows "All good". Here is the rich snippets markup: <div prefix="gr: http://purl.org/goodrelations/v1# v: http://rdf.data-vocabulary.org/#" resource="#gr-ProductOrService" typeof="gr:ProductOrService"> <span property="gr:name" content="Olight H15S Wave 250 lumen rechargeable LED headlamp"></span

What is the relationship between RDF, RDFa, Microformats and Microdata

こ雲淡風輕ζ 提交于 2019-12-02 18:08:42
I've done quite a bit of research but I can't understand the exact relationship between the 3. Also, now that W3C has officially recognised RDFa, would you recommend it over Microdata, taking into consideration that it matches Microdata's features and more? <sarcasm>I can't imagine what you find so confusing</sarcasm> (edit: these tags were invisible before) Very briefly: Microformats A way to use html pages as both a human readable document and machine readable data , without repetition (e.g. sticking CSV in the head element). RDF A data model designed for the web. Schemaless, uses URLs to