RDFa: Microdata: Turtle in HTML: | ||
This service is now discontinued and the underlying software not maintained any more. The underlying software is available publicly if someone is interested re-establishing the service somewhere.
This service is a common interface to extract structured data from HTML files in RDF. Structured data can be in microdata, RDFa, or Turtle embedded in HTML. The software relies on other services (see below for details); some of those may still be in development, so this service should not be considered as completely final yet.
Structured data in HTML can be expressed using microdata, RDFa, or Turtle embedded in HTML. While RDFa and Turtle are both RDF serialization syntaxes, microdata is not; it is simply a specification for attributes to be used with HTML5 to express structured data. A separate Semantic Web Interest Group Note defines a mapping from HTML5+Microdata to RDF.
There is a (and more complete) distiller
for RDFa 1.1; that distiller can also extract embedded Turtle content. A
separate microdata distiller is also available.
The current service is simply an interface to both, running both services
internally and merging the resulting RDF graphs. Note that this service relies on
HTML5 only; for the other Host Languages that RDFa 1.1 allows, the user should use
directly the RDFa 1.1 distiller.
As installed in this service is a server-side implementation of the conversion. This also means that pages that generate their (X)HTML content dynamically (e.g., using AJAX) will not be properly processed by this distiller.
source
; values: hturtle
,
rdfa
, microformats
)format
; values:
turtle
, xml
, json
, nt
;
default: turtle
) vocab_expansion
;
values: true
, false
; default: false
)vocab
attribute, i.e., to retrieve the corresponding RDF file and follow the possible
subclass and subproperty relationships. See the
RDFa 1.1. Core document for further details. (Note that there are
discussions to add this feature to the microdata conversion, too.)When using the distiller URI directly, the option names for the default options can be omitted. Some examples:
http://www.example.com/md.html
, serialized in
Turtle, and source in microdata only:http://www.w3.org/2012/sde/extract?uri=http://www.example.com/md.html&source=microdata
http://www.example.com/md.html
, serialized in
RDF/XML, source in microdata, RDFa, and Turtle:http://www.w3.org/2012/sde/extract?format=xml&uri=http://www.example.com/md.html&source=rdfa&source=microdata&source=hturtle
http://www.w3.org/2012/sde/extract?uri=referer&source=microdata
This software is available for use under the W3C® SOFTWARE NOTICE AND LICENSE