recomandation

Recommendation Ontology


The Recommendation Ontology specification provides basic concepts and properties for describing recommendations on/ for the Semantic Web.

Examples

Add another example.

Extended Music Artist Recommendation

This example shows an extended music artist recommendation modeled as rec:RankedRecommendation instance. It is based on the music artists recommendations of James Brown from Last.fm. Hence, the subject of the rec:recommendation relation is a resolvable URI to a description of James Brown at MusicBrainz, modeled and represented as Semantic Graph and provided by DBTune. Since a rec:RankedRecommendation is a sub class of rec:Recommendation and olo:OrderedList, it can also make use of ordered list features. That means, this enables the opportunity to also provide an ordered (/ranked) list of recommendation objects (related by rec:ranked_recommendation_object), by hiding the details of their ranking features on this level. These details are provided by further association statements (here sim:Similarity) related by using the ao:included_association property. Each slot item (related by olo:item) is also a music artist description at MusicBrainz, modeled and represented as Semantic Graph and provided by DBTune. Furthermore, each similarity statement (sim:Similarity) includes * the seed music artist (related by sim:subject), on which this similarity calculation is based on, * the other music artist (related by sim:object), * the weight of the similarity (related by sim:weight) and * the association (here similarity) method (related by sim:method) of the similarity calculation. This association method ( sim:AssociationMethod) can not be further specified here, because it is based on a proprietary algoritm from Last.fm. Therefore, the complete recommendation (related by rec:recommender) and also the association method itself (related by is:info_service) is associated to the Information Service Last.fm. more…

@prefix rec:     <http://purl.org/ontology/rec/core#> .
@prefix ex:      <http://example.org/> .
@prefix olo:     <http://purl.org/ontology/olo/core#> .
@prefix isi:     <http://purl.org/ontology/is/inst/> .
@prefix ao:      <http://purl.org/ontology/ao/core#> .
@prefix sim:     <http://purl.org/ontology/similarity/> .
@prefix is:      <http://purl.org/ontology/is/core#> .
 
<http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3> 
   rec:recommendation ex:AMusicRecommendation .
 
ex:AMusicRecommendation a rec:RankedRecommendation ;
   rec:recommender isi:lastfm ;
   sim:subject <http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3< ;
   rec:ranked_recommendation_object [
      a olo:Slot ;
      olo:item <http://dbtune.org/musicbrainz/resource/track/097c362d-72b7-4a53-96e2-d9ff02f8be1f> ;
      olo:index 1
      ] ;
   rec:ranked_recommendation_object [
      a olo:Slot ;
      olo:item <http://dbtune.org/musicbrainz/resource/track/161d35d9-3e31-41e9-8392-cf5d2c03b31d> ;
      olo:index 2
      ] ;
   rec:ranked_recommendation_object [
      a olo:Slot ;
      olo:item <http://dbtune.org/musicbrainz/resource/track/093c1742-ebda-45cd-a50c-734e5d92e7f2> ;
      olo:index 3
      ] ;
   rec:ranked_recommendation_object [
      a olo:Slot ;
      olo:item <http://dbtune.org/musicbrainz/resource/track/0a208327-525a-429b-8e79-51669bfb81f7> ;
      olo:index 4
      ] ;
   rec:ranked_recommendation_object [
      a olo:Slot ;
      olo:item <http://dbtune.org/musicbrainz/resource/track/0161855d-0b98-4f2d-b2ab-446dbd8d6759> ;
      olo:index 5
      ] ;
   rec:ranked_recommendation_object [
      a olo:Slot ;
      olo:item <http://dbtune.org/musicbrainz/resource/track/014f2510-e653-43e9-862a-880ac6388bb1> ;
      olo:index 6
      ] ;
   rec:ranked_recommendation_object [
      a olo:Slot ;
      olo:item <http://dbtune.org/musicbrainz/resource/track/0ab210b0-18c6-4c52-aee7-78f6012b9192> ;
      olo:index 7
      ] ;
   rec:ranked_recommendation_object [
      a olo:Slot ;
      olo:item <http://dbtune.org/musicbrainz/resource/track/027326ef-1455-48c9-8543-ac908eb71925> ;
      olo:index 8
      ] ;
   rec:ranked_recommendation_object [
      a olo:Slot ;
      olo:item <http://dbtune.org/musicbrainz/resource/track/04dc3d0b-dff4-41a0-8bf3-12b4b34460a6> ;
      olo:index 9
      ] ;
   rec:ranked_recommendation_object [
      a olo:Slot ;
      olo:item <http://dbtune.org/musicbrainz/resource/track/0348eea1-8178-4dc1-8a37-d09b5897ace2> ;
      olo:index 10
      ] ;
   ao:included_association ex:SimAssociation01 ;
   ao:included_association ex:SimAssociation02 ;
   ao:included_association ex:SimAssociation03 ;
   ao:included_association ex:SimAssociation04 ;
   ao:included_association ex:SimAssociation05 ;
   ao:included_association ex:SimAssociation06 ;
   ao:included_association ex:SimAssociation07 ;
   ao:included_association ex:SimAssociation08 ;
   ao:included_association ex:SimAssociation09 ;
   ao:included_association ex:SimAssociation10 .
 
ex:lfmTrackSimilarity a sim:AssociationMethod ;
   is:info_service isi:lastfm .	
 
ex:Association01 a sim:Similarity ;
   sim:subject <http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3> ;
   sim:object <http://dbtune.org/musicbrainz/resource/track/097c362d-72b7-4a53-96e2-d9ff02f8be1f> ;
   sim:weight 1.0 ;
   sim:method ex:lfmTrackSimilarity .
 
ex:Association02 a sim:Similarity ;
   sim:subject <http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3> ;
   sim:object <http://dbtune.org/musicbrainz/resource/track/161d35d9-3e31-41e9-8392-cf5d2c03b31d> ;
   sim:weight 0.968842 ;
   sim:method ex:lfmTrackSimilarity .
 
ex:Association03 a sim:Similarity ;
   sim:subject <http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3> ;
   sim:object <http://dbtune.org/musicbrainz/resource/track/093c1742-ebda-45cd-a50c-734e5d92e7f2> ;
   sim:weight 0.547951 ;
   sim:method ex:lfmTrackSimilarity .
 
ex:Association04 a sim:Similarity ;
   sim:subject <http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3> ;
   sim:object <http://dbtune.org/musicbrainz/resource/track/0a208327-525a-429b-8e79-51669bfb81f7> ;
   sim:weight 0.449539 ;
   sim:method ex:lfmTrackSimilarity .
 
ex:Association05 a sim:Similarity ;
   sim:subject <http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3> ;
   sim:object <http://dbtune.org/musicbrainz/resource/track/0161855d-0b98-4f2d-b2ab-446dbd8d6759> ;
   sim:weight 0.401746 ;
   sim:method ex:lfmTrackSimilarity .
 
ex:Association06 a sim:Similarity ;
   sim:subject <http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3> ;
   sim:object <http://dbtune.org/musicbrainz/resource/track/014f2510-e653-43e9-862a-880ac6388bb1> ;
   sim:weight 0.36673 ;
   sim:method ex:lfmTrackSimilarity .
 
ex:Association07 a sim:Similarity ;
   sim:subject <http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3> ;
   sim:object <http://dbtune.org/musicbrainz/resource/track/0ab210b0-18c6-4c52-aee7-78f6012b9192> ;
   sim:weight 0.36142 ;
   sim:method ex:lfmTrackSimilarity .
 
ex:Association08 a sim:Similarity ;
   sim:subject <http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3> ;
   sim:object <http://dbtune.org/musicbrainz/resource/track/027326ef-1455-48c9-8543-ac908eb71925> ;
   sim:weight 0.351277 ;
   sim:method ex:lfmTrackSimilarity .
 
ex:Association09 a sim:Similarity ;
   sim:subject <http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3> ;
   sim:object <http://dbtune.org/musicbrainz/resource/track/04dc3d0b-dff4-41a0-8bf3-12b4b34460a6> ;
   sim:weight 0.350151 ;
   sim:method ex:lfmTrackSimilarity .
 
ex:Association10 a sim:Similarity ;
   sim:subject <http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3> ;
   sim:object <http://dbtune.org/musicbrainz/resource/track/0348eea1-8178-4dc1-8a37-d09b5897ace2> ;
   sim:weight 0.336997 ;
   sim:method ex:lfmTrackSimilarity .

Simple Music Artist Recommendation

This example is a simplified one from the extended music artist recommendation example above. It is simply stripped down to its high level recommendation. The target, where the recommendation is for, is now related by the inverse property of rec:recommendation, rec:for. Furthermore, it includes a fictional audience group (ex:FunkyPeople), which is related by the property rec:recommendation_audience. Finally, the recommendation objects are now simply related by the property rec:recommendation_object. Of course, this doesn’t include the ranking, it is now an unordered list. However, it still includes the relation to its similarity method (ex:lfmTrackSimilarity). more…

@prefix rec:     <http://purl.org/ontology/rec/core#> .
@prefix ex:      <http://example.org/> .
@prefix isi:     <http://purl.org/ontology/is/inst/> .
@prefix sim:     <http://purl.org/ontology/similarity/> .
@prefix is:      <http://purl.org/ontology/is/core#> .
@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
 
ex:AMusicRecommendation a rec:Recommendation ;
   rec:for <http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3> ;
   rec:recommender isi:lastfm ;
   rec:recommendation_audience ex:FunkyPeople ;
   sim:subject <http://dbtune.org/musicbrainz/resource/track/008e72df-6469-4557-8b5b-c54c3285fbd3> ;
   rec:recommendation_object <http://dbtune.org/musicbrainz/resource/track/097c362d-72b7-4a53-96e2-d9ff02f8be1f> ;
   rec:recommendation_object <http://dbtune.org/musicbrainz/resource/track/161d35d9-3e31-41e9-8392-cf5d2c03b31d> ;
   rec:recommendation_object <http://dbtune.org/musicbrainz/resource/track/093c1742-ebda-45cd-a50c-734e5d92e7f2> ;
   rec:recommendation_object <http://dbtune.org/musicbrainz/resource/track/0a208327-525a-429b-8e79-51669bfb81f7> ;
   rec:recommendation_object <http://dbtune.org/musicbrainz/resource/track/0161855d-0b98-4f2d-b2ab-446dbd8d6759> ;
   rec:recommendation_object <http://dbtune.org/musicbrainz/resource/track/014f2510-e653-43e9-862a-880ac6388bb1> ;
   rec:recommendation_object <http://dbtune.org/musicbrainz/resource/track/0ab210b0-18c6-4c52-aee7-78f6012b9192> ;
   rec:recommendation_object <http://dbtune.org/musicbrainz/resource/track/027326ef-1455-48c9-8543-ac908eb71925> ;
   rec:recommendation_object <http://dbtune.org/musicbrainz/resource/track/04dc3d0b-dff4-41a0-8bf3-12b4b34460a6> ;
   rec:recommendation_object <http://dbtune.org/musicbrainz/resource/track/0348eea1-8178-4dc1-8a37-d09b5897ace2> ;
   sim:method ex:lfmTrackSimilarity .
 
ex:lfmTrackSimilarity a sim:AssociationMethod ;
   is:info_service isi:lastfm .
 
ex:FunkyPeople a foaf:Group .

Recommendation – SIMILARITY (basic)

How to make a basic Recommendation to a friend, based on your opinion of the similarity between two shows. more…

<?xml version="1.0"?>
<rdf:RDF xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:foaf="http://xmlns.com/foaf/0.1/"  xmlns:sim="http://purl.org/ontology/similarity/" xmlns:rec="http://purl.org/ontology/rec/core#" xmlns:mo="http://purl.org/ontology/mo/" xmlns:po="http://purl.org/ontology/po/"  xmlns:mobiletv="http://bcmoney-mobiletv.com/ontology#">
	<po:programme rdf:about="#theDailyShow">
		<rdfs:seeAlso rdf:resource="http://dbpedia.org/page/The_Daily_Show" />
	</po:programme>
	<po:programme rdf:about="#theColbertReport">
		<rdfs:seeAlso rdf:resource="http://dbpedia.org/page/The_Colbert_Report" />
	</po:programme>
	<rec:Recommendation rdf:about="http://bcmoney-mobiletv.com/ontology#episodeRecommendation">
		<rec:recommender rdf:resource="http://openrecommender.org" />
		<rec:recommendation_audience rdf:resource="http://bcmoney-mobiletv.com/ontology#friends" />
		<sim:subject rdf:resource="#theDailyShow" />
		<rec:recommendation_object rdf:resource="#theColbertReport" />
		<rec:for rdf:resource="#theDailyShow" />
		<sim:method>
			<sim:Similarity rdf:about="#myObviousSimilarity">
				<sim:element rdf:resource="#theDailyShow" />
				<sim:element rdf:resource="#theColbertReport" />
				<sim:weight>0.95</sim:weight>
				<dc:description>These shows are really just two sides of the same coin. Though the hosts pretend to have a long-standing rivalry due to differing political views, their friendship is noticeable, and the differing political views mostly imaginary. Many members of the original Daily Show production moved across the street to the set of The Colbert Report to bring the same production qualities and style to the newer show. Colbert has proven the more aggressive but Stewart still holds his own and subtly gets the best of Colbert (as per the script... but hey, I love it anyway as long as their exchanges are worth a laugh).</dc:description>
				<foaf:maker>
					<foaf:Person rdf:about="#me">
						<foaf:name>Bryan Copeland</foaf:name>
						<foaf:homepage rdf:resource="http://bryancopeland.com" />
                                                <foaf:nick>bcmoney</foaf:nick>
						<rdfs:seeAlso rdf:resource="http://bcmoney-mobiletv.com/bryan/foaf" />
                                                <mobiletv:community rdf:resource="http://bcmoney-mobiletv.com/">
                                                   <mobiletv:friends rdf:resource="http://bcmoney-mobiletv.com/bryan">
                                                     <foaf:knows rdf:resource="bcmoney"/>
                                                     <foaf:knows rdf:resource="TheLyle"/>
                                                     <foaf:knows rdf:resource="DCWorks"/>
                                                     <foaf:knows rdf:resource="Jaysay"/>
                                                     <foaf:knows rdf:resource="shannyc"/>
                                                     <foaf:knows rdf:resource="devomax"/>
                                                     <foaf:knows rdf:resource="rballs"/>
                                                     <foaf:knows rdf:resource="dick"/>
                                                     <foaf:knows rdf:resource="Greg"/>
                                                     <foaf:knows rdf:resource="NANA"/>
                                                     <foaf:knows rdf:resource="cartermatty"/>
                                                     <foaf:knows rdf:resource="roma"/>           
                                                     <foaf:knows rdf:resource="RStyles"/>                                          
                                                     <foaf:knows rdf:resource="pragmatic_guy"/>
                                                     <foaf:knows rdf:resource="logester"/>
                                                     <foaf:knows rdf:resource="kedarwavde"/>
                                                     <foaf:knows rdf:resource="OwenRyuto"/>
                                                     <foaf:knows rdf:resource="sdcnnng"/>
                                                </mobiletv:friends>
                                            </mobiletv:community>
					</foaf:Person>
				</foaf:maker>
			</sim:Similarity>
		</sim:method>
	</rec:Recommendation>
</rdf:RDF>