SlideShare ist ein Scribd-Unternehmen logo
1 von 4
SAMPLE DATA as N3:
@prefix mged: <http://mged.sourceforge.net/ontologies/MGEDOntology.owl#> .
@prefix demo: <http://linkeddata.systems/ontologies/SADITutorial.owl#> .
@prefix example: <http://example.org/patients#> .
example:Mark
a demo:PatientData;
mged:has_height "1.93";
demo:has_mass "96".
example:Jerven
a demo:PatientData;
mged:has_height "2.00";
demo:has_mass "85".
SAMPLE DATA as XML:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:mged="http://mged.sourceforge.net/ontologies/MGEDOntology.owl#"
xmlns:demo="http://linkeddata.systems/ontologies/SADITutorial.owl#" >
<rdf:Description rdf:about="http://example.org/patients#Jerven">
<mged:has_height>2.00</mged:has_height>
<demo:has_mass>85</demo:has_mass>
<rdf:type rdf:resource="http://linkeddata.systems/ontologies/SADITutorial.owl#PatientData"/>
</rdf:Description>
<rdf:Description rdf:about="http://example.org/patients#Mark">
<demo:has_mass>96</demo:has_mass>
<rdf:type rdf:resource="http://linkeddata.systems/ontologies/SADITutorial.owl#PatientData"/>
<mged:has_height>1.93</mged:has_height>
</rdf:Description>
</rdf:RDF>
See your service definition
http://linkeddata.systems/cgi-bin/SADI/GetMyBMI.pl
-- note that, because of annoying peculiarities in how Chrome handles
certain XML content-types, it is necessary (for humans) to view this in
Firefox, so that the XSLT transform is triggered correctly… Grrrrrr
Execute from command line:
curl -H 'Content-Type: text/rdf+n3' -H 'Accept: text/rdf+n3' -i --data-binary
@tutorialsampledata.n3 'http://linkeddata.systems/cgi-bin/SADI/GetMyBMI.pl'
Register the service
http://sadiframework.org/registry/register/
(there is a REST interface you can use for bulk registrations, but you
don’t get a lot of feedback on failure…)
Copy of XML sample data at: (for use in SPARQL queries)
http://linkeddata.systems/sampledata.rdf
Ontology:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:demo="http://linkeddata.systems/ontologies/SADITutorial.owl#"
xmlns:mged="http://mged.sourceforge.net/ontologies/MGEDOntology.owl#"
xmlns:owl="http://www.w3.org/2002/07/owl#">
<owl:DatatypeProperty
rdf:about="http://mged.sourceforge.net/ontologies/MGEDOntology.owl#has_height">
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://linkeddata.systems/ontologies/SADITuto rial.owl#has_mass">
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://sadiframework.org/examples/bmi.owl#BMI">
</owl:DatatypeProperty>
<owl:Class rdf:ID="PatientData">
<owl:intersectionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty
rdf:resource="http://mged.sourceforge.net/ontologies/MGEDOntology.owl#has_height"/>
<owl:minCardinality
rdf:datatype="http://www.w3.org/2001/XMLSchema#int">1</owl:minCardinality>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty
rdf:resource="http://linkeddata.systems/ontologies/SADITutorial.owl#has_mass"/>
<owl:minCardinality
rdf:datatype="http://www.w3.org/2001/XMLSchema#int">1</owl:minCardinality>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
<owl:Class rdf:ID="PatientBMI">
<owl:equivalentClass>
<owl:Restriction>
<owl:onProperty rdf:resource="http://sadiframework.org/examples/bmi.owl#BMI"/>
<owl:someValuesFrom rdf:resource="http://www.w3.org/2001/XMLSchema#long"/>
</owl:Restriction>
</owl:equivalentClass>
</owl:Class>
</rdf:RDF>
SPARQL Query for SHARE (http://dev.biordf.net/cardioSHARE/)
SELECT * FROM <http://linkeddata.systems/sampledata.rdf>
WHERE {
?s <http://sadiframework.org/examples/bmi.owl#BMI> ?val
}
Have a look at this:
http://linkeddata.systems/sampledata_untyped.rdf
Use that in your “FROM” clause… SHARE is using DL reasoning to
automatically discover and rdf:type the input data for the service!
Dynamic match-making between “generic” RDF data and appropriate service
interfaces.
Also look at this:
curl -H 'Content-Type: text/rdf+n3' -H 'Accept: application/n-quads' -i --data-binary
@tutorialsampledata.n3 'http://linkeddata.systems/cgi-bin/SADI/GetMyBMI.pl'

Weitere ähnliche Inhalte

Andere mochten auch

¡ALIMENTOS Y MALESTARES!
¡ALIMENTOS Y MALESTARES!¡ALIMENTOS Y MALESTARES!
¡ALIMENTOS Y MALESTARES!pipis397
 
Smart brief content marketing trifecta
Smart brief content marketing trifectaSmart brief content marketing trifecta
Smart brief content marketing trifectaSmartBrief
 
SWAT4LS 2011: SADI Knowledge Explorer Plug-in
SWAT4LS 2011: SADI Knowledge Explorer Plug-inSWAT4LS 2011: SADI Knowledge Explorer Plug-in
SWAT4LS 2011: SADI Knowledge Explorer Plug-inMark Wilkinson
 
Ryan Lost In Rainforest
Ryan Lost In RainforestRyan Lost In Rainforest
Ryan Lost In Rainforestnat014
 
The Evolution of Live Preview Environment Design
The Evolution of Live Preview Environment DesignThe Evolution of Live Preview Environment Design
The Evolution of Live Preview Environment DesignBrendan Sera-Shriar
 
Building a community around your blog v3
Building a community around your blog v3Building a community around your blog v3
Building a community around your blog v3Brendan Sera-Shriar
 
82378 andrea bocelli-y_celline_dion-1
82378 andrea bocelli-y_celline_dion-182378 andrea bocelli-y_celline_dion-1
82378 andrea bocelli-y_celline_dion-1pipis397
 
Menos errores en finanzas personales
Menos  errores en finanzas personalesMenos  errores en finanzas personales
Menos errores en finanzas personalespipis397
 
Migrate, Grow, and Cultivate your Community
Migrate, Grow, and Cultivate your CommunityMigrate, Grow, and Cultivate your Community
Migrate, Grow, and Cultivate your CommunityBrendan Sera-Shriar
 
It’s a WIN, WIN: ‘WordPress On Windows’
It’s a WIN, WIN: ‘WordPress On Windows’It’s a WIN, WIN: ‘WordPress On Windows’
It’s a WIN, WIN: ‘WordPress On Windows’Brendan Sera-Shriar
 
Using Semantics to personalize medical research
Using Semantics to personalize medical researchUsing Semantics to personalize medical research
Using Semantics to personalize medical researchMark Wilkinson
 
Importancia Del Agua Para El Cerebro
Importancia Del Agua Para El CerebroImportancia Del Agua Para El Cerebro
Importancia Del Agua Para El Cerebropipis397
 
Part 1: Lean Clinical Workplace Design
Part 1: Lean Clinical Workplace DesignPart 1: Lean Clinical Workplace Design
Part 1: Lean Clinical Workplace DesignHenryRahn
 
Web Science, SADI, and the Singularity
Web Science, SADI, and the SingularityWeb Science, SADI, and the Singularity
Web Science, SADI, and the SingularityMark Wilkinson
 

Andere mochten auch (20)

Tutorial 1.5 - Edit heatmaps
Tutorial 1.5 - Edit heatmapsTutorial 1.5 - Edit heatmaps
Tutorial 1.5 - Edit heatmaps
 
¡ALIMENTOS Y MALESTARES!
¡ALIMENTOS Y MALESTARES!¡ALIMENTOS Y MALESTARES!
¡ALIMENTOS Y MALESTARES!
 
Smart brief content marketing trifecta
Smart brief content marketing trifectaSmart brief content marketing trifecta
Smart brief content marketing trifecta
 
SWAT4LS 2011: SADI Knowledge Explorer Plug-in
SWAT4LS 2011: SADI Knowledge Explorer Plug-inSWAT4LS 2011: SADI Knowledge Explorer Plug-in
SWAT4LS 2011: SADI Knowledge Explorer Plug-in
 
Ryan Lost In Rainforest
Ryan Lost In RainforestRyan Lost In Rainforest
Ryan Lost In Rainforest
 
hi
hihi
hi
 
The Evolution of Live Preview Environment Design
The Evolution of Live Preview Environment DesignThe Evolution of Live Preview Environment Design
The Evolution of Live Preview Environment Design
 
Building a community around your blog v3
Building a community around your blog v3Building a community around your blog v3
Building a community around your blog v3
 
82378 andrea bocelli-y_celline_dion-1
82378 andrea bocelli-y_celline_dion-182378 andrea bocelli-y_celline_dion-1
82378 andrea bocelli-y_celline_dion-1
 
Menos errores en finanzas personales
Menos  errores en finanzas personalesMenos  errores en finanzas personales
Menos errores en finanzas personales
 
Combine Experiments
Combine ExperimentsCombine Experiments
Combine Experiments
 
Migrate, Grow, and Cultivate your Community
Migrate, Grow, and Cultivate your CommunityMigrate, Grow, and Cultivate your Community
Migrate, Grow, and Cultivate your Community
 
WPAN
WPANWPAN
WPAN
 
It’s a WIN, WIN: ‘WordPress On Windows’
It’s a WIN, WIN: ‘WordPress On Windows’It’s a WIN, WIN: ‘WordPress On Windows’
It’s a WIN, WIN: ‘WordPress On Windows’
 
Using Semantics to personalize medical research
Using Semantics to personalize medical researchUsing Semantics to personalize medical research
Using Semantics to personalize medical research
 
Importancia Del Agua Para El Cerebro
Importancia Del Agua Para El CerebroImportancia Del Agua Para El Cerebro
Importancia Del Agua Para El Cerebro
 
Part 1: Lean Clinical Workplace Design
Part 1: Lean Clinical Workplace DesignPart 1: Lean Clinical Workplace Design
Part 1: Lean Clinical Workplace Design
 
Gene Search
Gene SearchGene Search
Gene Search
 
La graviola
La graviolaLa graviola
La graviola
 
Web Science, SADI, and the Singularity
Web Science, SADI, and the SingularityWeb Science, SADI, and the Singularity
Web Science, SADI, and the Singularity
 

Ähnlich wie Sample data and other ur ls

OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)Pat Patterson
 
Who am I? Who are you? Who is anybody?
Who am I? Who are you? Who is anybody?Who am I? Who are you? Who is anybody?
Who am I? Who are you? Who is anybody?Paul Downey
 
Makroekonomi topik-8-1
Makroekonomi topik-8-1Makroekonomi topik-8-1
Makroekonomi topik-8-1020881
 
Sustainable livelihood-framework-sr-presentation
Sustainable livelihood-framework-sr-presentationSustainable livelihood-framework-sr-presentation
Sustainable livelihood-framework-sr-presentationguest6899d4f
 
Espacios en-tu-vida
Espacios en-tu-vidaEspacios en-tu-vida
Espacios en-tu-vidaepacheco1
 
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIsJosef Petrák
 
Makanan halal-haram-2970785
Makanan halal-haram-2970785Makanan halal-haram-2970785
Makanan halal-haram-2970785khairulamar
 
Unify Earth Observation products access with OpenSearch
Unify Earth Observation products access with OpenSearchUnify Earth Observation products access with OpenSearch
Unify Earth Observation products access with OpenSearchGasperi Jerome
 
WSO2Con USA 2015: Securing your APIs: Patterns and More
WSO2Con USA 2015: Securing your APIs: Patterns and MoreWSO2Con USA 2015: Securing your APIs: Patterns and More
WSO2Con USA 2015: Securing your APIs: Patterns and MoreWSO2
 
REST teori og praksis; REST in theory and practice
REST teori og praksis; REST in theory and practiceREST teori og praksis; REST in theory and practice
REST teori og praksis; REST in theory and practicehamnis
 
Drupal for ng_os
Drupal for ng_osDrupal for ng_os
Drupal for ng_osdstuartnz
 
ACM Bay Area Data Mining Workshop: Pattern, PMML, Hadoop
ACM Bay Area Data Mining Workshop: Pattern, PMML, HadoopACM Bay Area Data Mining Workshop: Pattern, PMML, Hadoop
ACM Bay Area Data Mining Workshop: Pattern, PMML, HadoopPaco Nathan
 
SHARE & the Semantic Web — This Time it's Personal
SHARE & the Semantic Web — This Time it's PersonalSHARE & the Semantic Web — This Time it's Personal
SHARE & the Semantic Web — This Time it's PersonalLuke McCarthy
 
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...Crossref
 

Ähnlich wie Sample data and other ur ls (20)

OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
 
Who am I? Who are you? Who is anybody?
Who am I? Who are you? Who is anybody?Who am I? Who are you? Who is anybody?
Who am I? Who are you? Who is anybody?
 
Dorothea orem-theory
Dorothea orem-theoryDorothea orem-theory
Dorothea orem-theory
 
Eclampsia 4-real-presentation
Eclampsia 4-real-presentationEclampsia 4-real-presentation
Eclampsia 4-real-presentation
 
XML for bioinformatics
XML for bioinformaticsXML for bioinformatics
XML for bioinformatics
 
Makroekonomi topik-8-1
Makroekonomi topik-8-1Makroekonomi topik-8-1
Makroekonomi topik-8-1
 
Sustainable livelihood-framework-sr-presentation
Sustainable livelihood-framework-sr-presentationSustainable livelihood-framework-sr-presentation
Sustainable livelihood-framework-sr-presentation
 
How to use Cache scope
How to use Cache scopeHow to use Cache scope
How to use Cache scope
 
Espacios en-tu-vida
Espacios en-tu-vidaEspacios en-tu-vida
Espacios en-tu-vida
 
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
 
Pdfforge org[1]
Pdfforge org[1]Pdfforge org[1]
Pdfforge org[1]
 
Makanan halal-haram-2970785
Makanan halal-haram-2970785Makanan halal-haram-2970785
Makanan halal-haram-2970785
 
Unify Earth Observation products access with OpenSearch
Unify Earth Observation products access with OpenSearchUnify Earth Observation products access with OpenSearch
Unify Earth Observation products access with OpenSearch
 
WSO2Con USA 2015: Securing your APIs: Patterns and More
WSO2Con USA 2015: Securing your APIs: Patterns and MoreWSO2Con USA 2015: Securing your APIs: Patterns and More
WSO2Con USA 2015: Securing your APIs: Patterns and More
 
REST teori og praksis; REST in theory and practice
REST teori og praksis; REST in theory and practiceREST teori og praksis; REST in theory and practice
REST teori og praksis; REST in theory and practice
 
Data shapes-test-suite
Data shapes-test-suiteData shapes-test-suite
Data shapes-test-suite
 
Drupal for ng_os
Drupal for ng_osDrupal for ng_os
Drupal for ng_os
 
ACM Bay Area Data Mining Workshop: Pattern, PMML, Hadoop
ACM Bay Area Data Mining Workshop: Pattern, PMML, HadoopACM Bay Area Data Mining Workshop: Pattern, PMML, Hadoop
ACM Bay Area Data Mining Workshop: Pattern, PMML, Hadoop
 
SHARE & the Semantic Web — This Time it's Personal
SHARE & the Semantic Web — This Time it's PersonalSHARE & the Semantic Web — This Time it's Personal
SHARE & the Semantic Web — This Time it's Personal
 
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...
 

Mehr von Mark Wilkinson

FAIR Metrics - Presentation to NIH KC1
FAIR Metrics - Presentation to NIH KC1FAIR Metrics - Presentation to NIH KC1
FAIR Metrics - Presentation to NIH KC1Mark Wilkinson
 
Introducing the fair evaluator
Introducing the fair evaluatorIntroducing the fair evaluator
Introducing the fair evaluatorMark Wilkinson
 
FAIR Projector Builder
FAIR Projector BuilderFAIR Projector Builder
FAIR Projector BuilderMark Wilkinson
 
Tech. session : Interoperability and Data FAIRness emerges from a novel combi...
Tech. session : Interoperability and Data FAIRness emerges from a novel combi...Tech. session : Interoperability and Data FAIRness emerges from a novel combi...
Tech. session : Interoperability and Data FAIRness emerges from a novel combi...Mark Wilkinson
 
smartAPIs: EUDAT Semantic Working Group Presentation @ RDA 9th Plenary
smartAPIs:  EUDAT Semantic Working Group Presentation @ RDA 9th PlenarysmartAPIs:  EUDAT Semantic Working Group Presentation @ RDA 9th Plenary
smartAPIs: EUDAT Semantic Working Group Presentation @ RDA 9th PlenaryMark Wilkinson
 
IBC FAIR Data Prototype Implementation slideshow
IBC FAIR Data Prototype Implementation   slideshowIBC FAIR Data Prototype Implementation   slideshow
IBC FAIR Data Prototype Implementation slideshowMark Wilkinson
 
FAIR Data Prototype - Interoperability and FAIRness through a novel combinati...
FAIR Data Prototype - Interoperability and FAIRness through a novel combinati...FAIR Data Prototype - Interoperability and FAIRness through a novel combinati...
FAIR Data Prototype - Interoperability and FAIRness through a novel combinati...Mark Wilkinson
 
Building SADI Services Tutorial - SIB Workshop, Geneva, December 2015
Building SADI Services Tutorial - SIB Workshop, Geneva, December 2015Building SADI Services Tutorial - SIB Workshop, Geneva, December 2015
Building SADI Services Tutorial - SIB Workshop, Geneva, December 2015Mark Wilkinson
 
Example code for the SADI BMI Calculator Web Service
Example code for the SADI BMI Calculator Web ServiceExample code for the SADI BMI Calculator Web Service
Example code for the SADI BMI Calculator Web ServiceMark Wilkinson
 
Tutorial - Creating SADI semantic-web-services
Tutorial - Creating SADI semantic-web-servicesTutorial - Creating SADI semantic-web-services
Tutorial - Creating SADI semantic-web-servicesMark Wilkinson
 
Data FAIRport Prototype & Demo - Presentation to Elsevier, Jul 10, 2015
Data FAIRport Prototype & Demo - Presentation to Elsevier, Jul 10, 2015Data FAIRport Prototype & Demo - Presentation to Elsevier, Jul 10, 2015
Data FAIRport Prototype & Demo - Presentation to Elsevier, Jul 10, 2015Mark Wilkinson
 
Force11 JDDCP workshop presentation, @ Force2015, Oxford
Force11 JDDCP workshop presentation, @ Force2015, OxfordForce11 JDDCP workshop presentation, @ Force2015, Oxford
Force11 JDDCP workshop presentation, @ Force2015, OxfordMark Wilkinson
 
Presentation to the J. Craig Venter Institute, Dec. 2014
Presentation to the J. Craig Venter Institute, Dec. 2014Presentation to the J. Craig Venter Institute, Dec. 2014
Presentation to the J. Craig Venter Institute, Dec. 2014Mark Wilkinson
 
Enhancing Reproducibility and Transparency in Clinical Research through Seman...
Enhancing Reproducibility and Transparency in Clinical Research through Seman...Enhancing Reproducibility and Transparency in Clinical Research through Seman...
Enhancing Reproducibility and Transparency in Clinical Research through Seman...Mark Wilkinson
 
Web Science 2.0 - in silico science
Web Science 2.0 - in silico scienceWeb Science 2.0 - in silico science
Web Science 2.0 - in silico scienceMark Wilkinson
 
Web Science - ISoLA 2012
Web Science - ISoLA 2012Web Science - ISoLA 2012
Web Science - ISoLA 2012Mark Wilkinson
 
Evaluating Hypotheses using SPARQL-DL as an abstract workflow language to cho...
Evaluating Hypotheses using SPARQL-DL as an abstract workflow language to cho...Evaluating Hypotheses using SPARQL-DL as an abstract workflow language to cho...
Evaluating Hypotheses using SPARQL-DL as an abstract workflow language to cho...Mark Wilkinson
 
SADI in Perl - Protege Plugin Tutorial (fixed Aug 24, 2011)
SADI in Perl - Protege Plugin Tutorial (fixed Aug 24, 2011)SADI in Perl - Protege Plugin Tutorial (fixed Aug 24, 2011)
SADI in Perl - Protege Plugin Tutorial (fixed Aug 24, 2011)Mark Wilkinson
 

Mehr von Mark Wilkinson (20)

FAIR Metrics - Presentation to NIH KC1
FAIR Metrics - Presentation to NIH KC1FAIR Metrics - Presentation to NIH KC1
FAIR Metrics - Presentation to NIH KC1
 
Introducing the fair evaluator
Introducing the fair evaluatorIntroducing the fair evaluator
Introducing the fair evaluator
 
FAIR Projector Builder
FAIR Projector BuilderFAIR Projector Builder
FAIR Projector Builder
 
Tech. session : Interoperability and Data FAIRness emerges from a novel combi...
Tech. session : Interoperability and Data FAIRness emerges from a novel combi...Tech. session : Interoperability and Data FAIRness emerges from a novel combi...
Tech. session : Interoperability and Data FAIRness emerges from a novel combi...
 
smartAPIs: EUDAT Semantic Working Group Presentation @ RDA 9th Plenary
smartAPIs:  EUDAT Semantic Working Group Presentation @ RDA 9th PlenarysmartAPIs:  EUDAT Semantic Working Group Presentation @ RDA 9th Plenary
smartAPIs: EUDAT Semantic Working Group Presentation @ RDA 9th Plenary
 
IBC FAIR Data Prototype Implementation slideshow
IBC FAIR Data Prototype Implementation   slideshowIBC FAIR Data Prototype Implementation   slideshow
IBC FAIR Data Prototype Implementation slideshow
 
FAIR Data Prototype - Interoperability and FAIRness through a novel combinati...
FAIR Data Prototype - Interoperability and FAIRness through a novel combinati...FAIR Data Prototype - Interoperability and FAIRness through a novel combinati...
FAIR Data Prototype - Interoperability and FAIRness through a novel combinati...
 
Building SADI Services Tutorial - SIB Workshop, Geneva, December 2015
Building SADI Services Tutorial - SIB Workshop, Geneva, December 2015Building SADI Services Tutorial - SIB Workshop, Geneva, December 2015
Building SADI Services Tutorial - SIB Workshop, Geneva, December 2015
 
Example code for the SADI BMI Calculator Web Service
Example code for the SADI BMI Calculator Web ServiceExample code for the SADI BMI Calculator Web Service
Example code for the SADI BMI Calculator Web Service
 
Sadi service
Sadi serviceSadi service
Sadi service
 
Tutorial - Creating SADI semantic-web-services
Tutorial - Creating SADI semantic-web-servicesTutorial - Creating SADI semantic-web-services
Tutorial - Creating SADI semantic-web-services
 
Data FAIRport Prototype & Demo - Presentation to Elsevier, Jul 10, 2015
Data FAIRport Prototype & Demo - Presentation to Elsevier, Jul 10, 2015Data FAIRport Prototype & Demo - Presentation to Elsevier, Jul 10, 2015
Data FAIRport Prototype & Demo - Presentation to Elsevier, Jul 10, 2015
 
Force11 JDDCP workshop presentation, @ Force2015, Oxford
Force11 JDDCP workshop presentation, @ Force2015, OxfordForce11 JDDCP workshop presentation, @ Force2015, Oxford
Force11 JDDCP workshop presentation, @ Force2015, Oxford
 
Presentation to the J. Craig Venter Institute, Dec. 2014
Presentation to the J. Craig Venter Institute, Dec. 2014Presentation to the J. Craig Venter Institute, Dec. 2014
Presentation to the J. Craig Venter Institute, Dec. 2014
 
Enhancing Reproducibility and Transparency in Clinical Research through Seman...
Enhancing Reproducibility and Transparency in Clinical Research through Seman...Enhancing Reproducibility and Transparency in Clinical Research through Seman...
Enhancing Reproducibility and Transparency in Clinical Research through Seman...
 
SADI CSHALS 2013
SADI CSHALS 2013SADI CSHALS 2013
SADI CSHALS 2013
 
Web Science 2.0 - in silico science
Web Science 2.0 - in silico scienceWeb Science 2.0 - in silico science
Web Science 2.0 - in silico science
 
Web Science - ISoLA 2012
Web Science - ISoLA 2012Web Science - ISoLA 2012
Web Science - ISoLA 2012
 
Evaluating Hypotheses using SPARQL-DL as an abstract workflow language to cho...
Evaluating Hypotheses using SPARQL-DL as an abstract workflow language to cho...Evaluating Hypotheses using SPARQL-DL as an abstract workflow language to cho...
Evaluating Hypotheses using SPARQL-DL as an abstract workflow language to cho...
 
SADI in Perl - Protege Plugin Tutorial (fixed Aug 24, 2011)
SADI in Perl - Protege Plugin Tutorial (fixed Aug 24, 2011)SADI in Perl - Protege Plugin Tutorial (fixed Aug 24, 2011)
SADI in Perl - Protege Plugin Tutorial (fixed Aug 24, 2011)
 

Sample data and other ur ls

  • 1. SAMPLE DATA as N3: @prefix mged: <http://mged.sourceforge.net/ontologies/MGEDOntology.owl#> . @prefix demo: <http://linkeddata.systems/ontologies/SADITutorial.owl#> . @prefix example: <http://example.org/patients#> . example:Mark a demo:PatientData; mged:has_height "1.93"; demo:has_mass "96". example:Jerven a demo:PatientData; mged:has_height "2.00"; demo:has_mass "85". SAMPLE DATA as XML: <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:mged="http://mged.sourceforge.net/ontologies/MGEDOntology.owl#" xmlns:demo="http://linkeddata.systems/ontologies/SADITutorial.owl#" > <rdf:Description rdf:about="http://example.org/patients#Jerven"> <mged:has_height>2.00</mged:has_height> <demo:has_mass>85</demo:has_mass> <rdf:type rdf:resource="http://linkeddata.systems/ontologies/SADITutorial.owl#PatientData"/> </rdf:Description> <rdf:Description rdf:about="http://example.org/patients#Mark"> <demo:has_mass>96</demo:has_mass> <rdf:type rdf:resource="http://linkeddata.systems/ontologies/SADITutorial.owl#PatientData"/> <mged:has_height>1.93</mged:has_height> </rdf:Description> </rdf:RDF> See your service definition http://linkeddata.systems/cgi-bin/SADI/GetMyBMI.pl
  • 2. -- note that, because of annoying peculiarities in how Chrome handles certain XML content-types, it is necessary (for humans) to view this in Firefox, so that the XSLT transform is triggered correctly… Grrrrrr Execute from command line: curl -H 'Content-Type: text/rdf+n3' -H 'Accept: text/rdf+n3' -i --data-binary @tutorialsampledata.n3 'http://linkeddata.systems/cgi-bin/SADI/GetMyBMI.pl' Register the service http://sadiframework.org/registry/register/ (there is a REST interface you can use for bulk registrations, but you don’t get a lot of feedback on failure…) Copy of XML sample data at: (for use in SPARQL queries) http://linkeddata.systems/sampledata.rdf Ontology: <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:demo="http://linkeddata.systems/ontologies/SADITutorial.owl#"
  • 3. xmlns:mged="http://mged.sourceforge.net/ontologies/MGEDOntology.owl#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <owl:DatatypeProperty rdf:about="http://mged.sourceforge.net/ontologies/MGEDOntology.owl#has_height"> </owl:DatatypeProperty> <owl:DatatypeProperty rdf:about="http://linkeddata.systems/ontologies/SADITuto rial.owl#has_mass"> </owl:DatatypeProperty> <owl:DatatypeProperty rdf:about="http://sadiframework.org/examples/bmi.owl#BMI"> </owl:DatatypeProperty> <owl:Class rdf:ID="PatientData"> <owl:intersectionOf rdf:parseType="Collection"> <owl:Restriction> <owl:onProperty rdf:resource="http://mged.sourceforge.net/ontologies/MGEDOntology.owl#has_height"/> <owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#int">1</owl:minCardinality> </owl:Restriction> <owl:Restriction> <owl:onProperty rdf:resource="http://linkeddata.systems/ontologies/SADITutorial.owl#has_mass"/> <owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#int">1</owl:minCardinality> </owl:Restriction> </owl:intersectionOf> </owl:Class> <owl:Class rdf:ID="PatientBMI"> <owl:equivalentClass> <owl:Restriction> <owl:onProperty rdf:resource="http://sadiframework.org/examples/bmi.owl#BMI"/> <owl:someValuesFrom rdf:resource="http://www.w3.org/2001/XMLSchema#long"/> </owl:Restriction> </owl:equivalentClass> </owl:Class> </rdf:RDF> SPARQL Query for SHARE (http://dev.biordf.net/cardioSHARE/) SELECT * FROM <http://linkeddata.systems/sampledata.rdf> WHERE { ?s <http://sadiframework.org/examples/bmi.owl#BMI> ?val } Have a look at this: http://linkeddata.systems/sampledata_untyped.rdf Use that in your “FROM” clause… SHARE is using DL reasoning to automatically discover and rdf:type the input data for the service!
  • 4. Dynamic match-making between “generic” RDF data and appropriate service interfaces. Also look at this: curl -H 'Content-Type: text/rdf+n3' -H 'Accept: application/n-quads' -i --data-binary @tutorialsampledata.n3 'http://linkeddata.systems/cgi-bin/SADI/GetMyBMI.pl'