Skip to content

BTE Between The Edges

Tim L edited this page Apr 3, 2016 · 21 revisions

What is first

What we will cover

This page describes how the BTE vocabulary is used.

Let's get to it

$ cat uris.ttl 
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
<ftp://darthmouth.edu/files/blah1.csv> a rdfs:Resource .
<ftp://darthmouth.edu/files/blah2.csv> a rdfs:Resource .
<mailto:[email protected]> a rdfs:Resource .
<mailto:[email protected]> a rdfs:Resource .
<http://www.hyphen.info/rdf/30.xml> a rdfs:Resource .
<http://www.hyphen.info/rdf/26.xml> a rdfs:Resource .
<http://www.hyphen.info/rdf/20.xml> a rdfs:Resource .
<http://www.hyphen.info/rdf/20.xml> a rdfs:Resource .
<http://www.hyphen.info/rdf/40.xml> a rdfs:Resource .
<http://www.hyphen.info/rdf/40.xml> a rdfs:Resource .
<http://www.hyphen.info/rdf/40.xml> a rdfs:Resource .
<http://www.hyphen.info/rdf/40> a rdfs:Resource .
<http://www.hyphen.info/rdf/40> a rdfs:Resource .
<http://www.christiansurfers.net/feed.aspx> a rdfs:Resource .
<http://www.hyphen.info/rdf/35.xml> a rdfs:Resource .
<http://www.hyphen.info/rdf/18.xml> a rdfs:Resource .

$ python /path/to/DataFAQs/services/sadi/faqt/naming/between-the-edges.py uris.ttl text/turtle
@prefix bte: <http://purl.org/twc/vocab/between-the-edges/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<ftp://darthmouth.edu/files/blah1.csv> a bte:RDFNode ;
    bte:length 36 ;
    bte:netloc "darthmouth.edu" ;
    bte:path "/files/blah1.csv" ;
    bte:scheme "ftp" .

<ftp://darthmouth.edu/files/blah2.csv> a bte:RDFNode ;
    bte:length 36 ;
    bte:netloc "darthmouth.edu" ;
    bte:path "/files/blah2.csv" ;
    bte:scheme "ftp" .

<http://www.christiansurfers.net/feed.aspx> a bte:Node,
        bte:RDFNode ;
    bte:broader <http://www.christiansurfers.net> ;
    bte:depth 1 ;
    bte:extension ".aspx" ;
    bte:length 41 ;
    bte:netloc "www.christiansurfers.net" ;
    bte:path "/feed.aspx" ;
    bte:scheme "http" ;
    bte:step "feed.aspx" .

<http://www.hyphen.info/rdf/18.xml> a bte:Node,
        bte:RDFNode ;
    bte:broader <http://www.hyphen.info/rdf> ;
    bte:depth 2 ;
    bte:extension ".xml" ;
    bte:length 33 ;
    bte:netloc "www.hyphen.info" ;
    bte:path "/rdf/18.xml" ;
    bte:scheme "http" ;
    bte:step "18.xml" .

<http://www.hyphen.info/rdf/20.xml> a bte:Node,
        bte:RDFNode ;
    bte:broader <http://www.hyphen.info/rdf> ;
    bte:depth 2 ;
    bte:extension ".xml" ;
    bte:length 33 ;
    bte:netloc "www.hyphen.info" ;
    bte:path "/rdf/20.xml" ;
    bte:scheme "http" ;
    bte:step "20.xml" .

<http://www.hyphen.info/rdf/26.xml> a bte:Node,
        bte:RDFNode ;
    bte:broader <http://www.hyphen.info/rdf> ;
    bte:depth 2 ;
    bte:extension ".xml" ;
    bte:length 33 ;
    bte:netloc "www.hyphen.info" ;
    bte:path "/rdf/26.xml" ;
    bte:scheme "http" ;
    bte:step "26.xml" .

<http://www.hyphen.info/rdf/30.xml> a bte:Node,
        bte:RDFNode ;
    bte:broader <http://www.hyphen.info/rdf> ;
    bte:depth 2 ;
    bte:extension ".xml" ;
    bte:length 33 ;
    bte:netloc "www.hyphen.info" ;
    bte:path "/rdf/30.xml" ;
    bte:scheme "http" ;
    bte:step "30.xml" .

<http://www.hyphen.info/rdf/35.xml> a bte:Node,
        bte:RDFNode ;
    bte:broader <http://www.hyphen.info/rdf> ;
    bte:depth 2 ;
    bte:extension ".xml" ;
    bte:length 33 ;
    bte:netloc "www.hyphen.info" ;
    bte:path "/rdf/35.xml" ;
    bte:scheme "http" ;
    bte:step "35.xml" .

<http://www.hyphen.info/rdf/40> a bte:Node,
        bte:RDFNode ;
    bte:broader <http://www.hyphen.info/rdf> ;
    bte:depth 2 ;
    bte:length 29 ;
    bte:netloc "www.hyphen.info" ;
    bte:path "/rdf/40" ;
    bte:scheme "http" ;
    bte:step "40" .

<http://www.hyphen.info/rdf/40.xml> a bte:Node,
        bte:RDFNode ;
    bte:broader <http://www.hyphen.info/rdf> ;
    bte:depth 2 ;
    bte:extension ".xml" ;
    bte:length 33 ;
    bte:netloc "www.hyphen.info" ;
    bte:path "/rdf/40.xml" ;
    bte:scheme "http" ;
    bte:step "40.xml" .

<mailto:[email protected]> a bte:RDFNode ;
    bte:length 19 ;
    bte:path "[email protected]" ;
    bte:scheme "mailto" .

<mailto:[email protected]> a bte:RDFNode ;
    bte:length 18 ;
    bte:path "[email protected]" ;
    bte:scheme "mailto" .

<http://www.christiansurfers.net> a bte:Node ;
    bte:depth 0 .

<http://www.hyphen.info> a bte:Node ;
    bte:depth 0 .

<http://www.hyphen.info/rdf> a bte:Node ;
    bte:broader <http://www.hyphen.info> ;
    bte:depth 1 ;
    bte:step "rdf" .

bte:root

<http://www.hyphen.info/rdf/40.xml> bte:root <http://www.hyphen.info> .
<http://www.hyphen.info> bte:pld <http://hyphen.info>
<http://hyphen.info> a bte:PayLevelDomain .

Used by Billion Triples Challenge

bte:pld

subproperty of bte:broader

<http://www.hyphen.info/rdf/40.xml> bte:root <http://www.hyphen.info> .
<http://www.hyphen.info> bte:pld <http://hyphen.info>
<http://hyphen.info> a bte:PayLevelDomain .

Used by Billion Triples Challenge

bte:PayLevelDomain

<http://www.hyphen.info/rdf/40.xml> bte:root <http://www.hyphen.info> .
<http://www.hyphen.info> bte:pld <http://hyphen.info>
<http://hyphen.info> a bte:PayLevelDomain .

Used by Billion Triples Challenge

PrefixTree

Introduced for analyzing the Billion Triple Challenge.

For example, the following PrefixTree shows the number of triples found in the only RPI contexts in BTC 2012. The URI for this file format is http://purl.org/twc/vocab/between-the-edges/PrefixTree.

http:// _/2241
 www.cs.rpi.edu/~ _/1952
  ta _/100
   yloj/DOCS/foaf.rdf 42
   oj2/sw/foaf.rdf 58
  hendler/foaf.rdf 1167
  dingl/foaf.rdf 342
  weavej3/ _/333
   foaf.rdf 106
   papers.rdf 227
  ankesh/foaf.rdf 10
 tw.rpi.edu/ _/289
  weblog/feed/rdf/ 120
  instances/EricRozell.rdf 169
Clone this wiki locally