The xbrlrss feed that comes from the sec looks something like:
<?xml version="1.0" encoding="windows-1252"?> <rss version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rss="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <channel rdf:about="http://www.sec.gov/Archives/edgar/xbrl.html"> <title>XBRL Data Submitted in the XBRL Voluntary Program on EDGAR</title> <link>http://www.sec.gov/Archives/edgar/xbrl.html</link> <description>This listing contains all filings containing XBRL as of the previous official filing date.</description> <language>en-us</language> <pubDate>Tue, 26 Jun 2007 00:00:00 EST</pubDate> <lastBuildDate>Tue, 26 Jun 2007 00:00:00 EST</lastBuildDate> <item rdf:about="http://www.sec.gov/Archives/edgar/data/1166691/000119312507140058/0001193125-07-140058-index.htm"> <title>COMCAST CORP (0001166691) (Filer)</title> <link>http://www.sec.gov/Archives/edgar/data/1166691/000119312507140058/0001193125-07-140058-index.htm</link> <description>8-K</description> <pubDate>Thu, 21 Jun 2007 17:15:52 EST</pubDate> <edgar:xbrlFiling xmlns:edgar="http://www.sec.gov/Archives/edgar"> <edgar:companyName>COMCAST CORP</edgar:companyName> <edgar:formType>8-K</edgar:formType> <edgar:filingDate>06/21/2007</edgar:filingDate> <edgar:cikNumber>0001166691</edgar:cikNumber> <edgar:accessionNumber>0001193125-07-140058</edgar:accessionNumber> <edgar:fileNumber>001-32871</edgar:fileNumber> <edgar:xbrlFiles> <edgar:xbrlFile sequence="1" file="d8k.htm" type="8-K" size="13529" description="FORM 8-K" url="http://www.sec.gov/Archives/edgar/data/1166691/000119312507140058/d8k.htm" /> <edgar:xbrlFile sequence="2" file="cmcsa-20070331.xml" type="EX-100.INS" size="39783" description="XBRL INSTANCE DOCUMENT" url="http://www.sec.gov/Archives/edgar/data/1166691/000119312507140058/cmcsa-20070331.xml" /> <edgar:xbrlFile sequence="3" file="cmcsa-20070331.xsd" type="EX-100.SCH" size="7709" description="XBRL TAXONOMY EXTENSION SCHEMA" url="http://www.sec.gov/Archives/edgar/data/1166691/000119312507140058/cmcsa-20070331.xsd" /> <edgar:xbrlFile sequence="4" file="cmcsa-ssu_xbrl.xsd" type="EX-100.SCH-1" size="552" description="XBRL TAXONOMY EXTENSION SCHEMA" url="http://www.sec.gov/Archives/edgar/data/1166691/000119312507140058/cmcsa-ssu_xbrl.xsd" /> <edgar:xbrlFile sequence="5" file="cmcsa-20070331_cal.xml" type="EX-100.CAL" size="80922" description="XBRL TAXONOMY EXTENSION CALCULATION LINKBASE" url="http://www.sec.gov/Archives/edgar/data/1166691/000119312507140058/cmcsa-20070331_cal.xml" /> <edgar:xbrlFile sequence="6" file="cmcsa-20070331_lab.xml" type="EX-100.LAB" size="63346" description="XBRL TAXONOMY EXTENSION LABEL LINKBASE" url="http://www.sec.gov/Archives/edgar/data/1166691/000119312507140058/cmcsa-20070331_lab.xml" /> <edgar:xbrlFile sequence="7" file="cmcsa-20070331_pre.xml" type="EX-100.PRE" size="113668" description="XBRL TAXONOMY EXTENSION PRESENTATION LINKBASE" url="http://www.sec.gov/Archives/edgar/data/1166691/000119312507140058/cmcsa-20070331_pre.xml" /> </edgar:xbrlFiles> </edgar:xbrlFiling> </item>
We convert it to rdf triples (shown here serialized as n3 triples).
@prefix edgar: <http://www.sec.gov/Archives/>. @prefix ov: <http://owl.openvest.org/2005/10/Portfolio#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. <http://www.sec.gov/Archives/edgar/data/101829/000119312505171147> a edgar:edgarxbrlFiling; edgar:edgaraccessionNumber "000119312505171147"; edgar:edgarcikNumber "0000101829"; edgar:edgarcompanyName "UNITED TECHNOLOGIES CORP /DE/"; edgar:edgarfileNumber "001-00812"; edgar:edgarfilingDate "2005-08-19"^^<http://www.w3.org/2001/XMLSchema#date>; edgar:edgarformType "8-K"; edgar:edgarxbrlFiles [ a rdf:Seq; rdf:_1 <http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812.xml>; rdf:_2 <http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812.xsd>; rdf:_3 <http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812_cal.xml>; rdf:_4 <http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812_lab.xml>; rdf:_5 <http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812_pre.xml>; rdf:_6 <http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812_ref.xml>]. ########################################################################################### # A bunch of the above followed by a bunch of the below ########################################################################################### <http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812.xml> a ov:XbrlInstance; edgar:edgarurl "http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812.xml"^^<http://www.w3.org/2001/XMLSchema#anyURI>; rdfs:comment "XBRL INSTANCE DOCUMENT"^^<http://www.w3.org/2001/XMLSchema#string>. <http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812.xsd> a ov:XbrlSchema; edgar:edgarurl "http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812.xsd"^^<http://www.w3.org/2001/XMLSchema#anyURI>; rdfs:comment "XBRL TAXONOMY EXTENSION SCHEMA"^^<http://www.w3.org/2001/XMLSchema#string>. <http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812_cal.xml> a ov:XbrlCalculationLinkbase; edgar:edgarurl "http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812_cal.xml"^^<http://www.w3.org/2001/XMLSchema#anyURI>; rdfs:comment "XBRL TAXONOMY EXTENSION CALCULATION LINKBASE"^^<http://www.w3.org/2001/XMLSchema#string>. <http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812_lab.xml> a ov:XbrlLabelLinkbase; edgar:edgarurl "http://www.sec.gov/Archives/edgar/data/101829/000119312505171147/utx-20050812_lab.xml"^^<http://www.w3.org/2001/XMLSchema#anyURI>; rdfs:comment "XBRL TAXONOMY EXTENSION LABEL LINKBASE"^^<http://www.w3.org/2001/XMLSchema#string>.
