You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 25, 2020. It is now read-only.
We want to read RDF XML back in, that means we cannot use the templating engine to generate the XML. Instead we decorate
the <concept> element in a KannSpec with a rdftype="o:foo" attribute, this generates a RDF triple of the form <rdf:type rdf:resource="o:foo"/>.
the <field> element with a ```rdfpred="o:bar" attribute, this generates an RDF triple
<o:bar>baz</o:bar> if the type of the field is text
<o:bar rdf:resource="#ref#"/>, if the type of the field is reference and #ref# the value of the reference.
<o:bar>#val#</o:bar> if the type of the field is select and #val# is the value of the chosen option.
<o:bar rdf:resource="#obj#"/> if the type of the field is select and the chosen option carries an attribute rdfobj="#obj#".
This should cover all the cases.
The text was updated successfully, but these errors were encountered:
I have already extended schema/kannspec.rnc accordingly an updated the KannSpecs omdoc-annotations.xml and olia.xml. The KannSpec stanford.xml was never complete, see #16
@kohlhase I am almost done implementing the export. Because javascript has non-optimal handling of case-sensitive elements, it took a bit longer. While I was at it, I updated the export sample to pass the RDF validator at http://www.w3.org/RDF/Validator/ .
Note that this is only on the dev branch because @sourabhlal code isn't stable enough for a merge to master.
We want to read RDF XML back in, that means we cannot use the templating engine to generate the XML. Instead we decorate
<concept>
element in a KannSpec with ardftype="o:foo"
attribute, this generates a RDF triple of the form<rdf:type rdf:resource="o:foo"/>
.<field>
element with a ```rdfpred="o:bar" attribute, this generates an RDF triple<o:bar>baz</o:bar>
if the type of the field istext
<o:bar rdf:resource="#ref#"/>
, if the type of the field isreference
and#ref#
the value of the reference.<o:bar>#val#</o:bar>
if the type of the field isselect
and#val#
is the value of the chosen option.<o:bar rdf:resource="#obj#"/>
if the type of the field isselect
and the chosen option carries an attributerdfobj="#obj#"
.This should cover all the cases.
The text was updated successfully, but these errors were encountered: