Example of Service Description for DARQ


@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#&gt; .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#&gt; .
@prefix sd: <http://darq.sf.net/dose/0.1#&gt; .
@prefix a: <http://example.com/a#&gt; .
@prefix b: <http://example.com/b#&gt; .
@prefix foaf: <http://xmlns.com/foaf/0.1/#&gt; .

# definition of an endpoint A
[] a sd:Service ;
sd:capability [
sd:predicate foaf:name ;
sd:triples 10 ;
sd:subjectSelectivity 0.1 ; # 1/10 (10 of distint subject)
sd:objectSelectivity 0.2 ] ; # 1/5 ( 5 of distinct object)
sd:capability [
sd:predicate foaf:mbox ;
sd:triples 10 ] ;
sd:totalTriples “20” ;
sd:url “http://a.com/sparql&#8221; .

# definition of an endpoint B
[] a sd:Service ;
sd:capability [
sd:predicate foaf:name ;
sd:triples 20 ;
sd:subjectSelectivity 0.05 ; # 1/20 (20 of distinct subject)
sd:objectSelectivity 0.125 ] ; # 1/8 ( 8 of distinct object)
sd:capability [
sd:predicate foaf:mbox ;
sd:triples 20 ] ;
sd:totalTriples “40” ;
sd:url “http://b.com/sparql&#8221; .

  1. Kode2 sebagaimana di atas sungguh merupakan hal baru bagi saya, Mbak.

    Ohya, Mbak, saya sedang mengadakan giveaway betapa senangnya ngeblog. Silakan ikut ya, Mbak. Info selengkapnya dapat dilihat di blog saya. Makasih….

  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s