W3C home > Mailing lists > Public > semantic-web@w3.org > September 2008

advice on modeling an XBRL fact as a triple

From: Bob DuCharme <bob@snee.com>
Date: Wed, 10 Sep 2008 10:59:18 -0400
Message-ID: <48C7E0C6.7050303@snee.com>
To: semantic-web@w3.org

I wanted to bounce some ideas off of others regarding the modeling of an 
XBRL "fact" (an XBRL term of art) as triples. I'm not ambitious enough 
yet to model all the possible relationships that XBRL instances and 
taxonomies can express, and would rather start with simple facts as the 
low-hanging fruit.

Here is some sample XML from an XBRL instance:


The toughest part is the PCDATA 485000000 part. To turn the above into 
an RDF/XML element, I could wrap 485000000 in an rdf:bag or something, 
but I want to keep it simpler to make the eventual SPARQL queries 
simpler. Assuming that structuring the triples around a blank node is 
the best way to go, how does the following look?

   _bnodex rdf:type "us-gaap:SharesOutstanding";
           xbrl:contextRef "x1";
           xbrl:unitRef "Shares";
           xbrl:decimals "-6";
           us-gaap:SharesOutstanding "485000000".

If the use of the rdf:type object as a predicate is not a good idea, is 
there some convention (i.e. an existing predicate from an existing 
ontology) to represent the PCDATA of an element that has attributes that 
are also being represented by triples?


Received on Wednesday, 10 September 2008 14:58:11 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 08:45:09 UTC