All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webapp.data.demo.mapprofile.ttl Maven / Gradle / Ivy

Go to download

Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1 Query and Update.

The newest version!
@prefix spq:    
@prefix navlab: 
@prefix map:    


st:access st:namespace 
, 
# map.json + format
,
,
,
,
# function.rq
, 

.


st:amap a st:Server ;
st:service "amap" ;
st:shareContent st:mapContent ;
st:workflow st:mapwf ;
st:param [
    st:import st:amapParam ;
    st:queriez ( 
    st:indexNature
    st:indexArtefact
    st:indexAll
    st:indexPositionLabel
    st:indexPositionCom
    )
] .

# direct access to search engine
# http://localhost:8080/srv/service/amapquery?mode=http://ns.inria.fr/map/Lac
#
st:amapq a st:Server ;
st:service "amapquery" ;
st:shareContent st:mapContent ;
st:workflow st:mapwf ;
st:param [
    st:import st:amapParam ;
    st:uri st:indexQuery ;
    st:submit false ;
    st:queries (st:intro st:indexQuery)
] .

st:paca a st:Server ;
st:service "paca" ;
st:shareContent st:mapContent ;
st:workflow st:mapwf ;
st:param [
    st:import st:amapParam ;
    st:title "Provence Alpes Côte d'Azur";
    #st:departement (06 04 83 13 84) ;
    st:region ("Provence-Alpes-Côte d'Azur" ) ;
    #st:exclude (map:BorneFrontière map:Mégalithe)
    #st:include (map:Nature)

] .

st:paca06 a st:Server ;
st:service "paca06" ;
st:shareContent st:mapContent ;
st:workflow st:mapwf ;
st:param [
    st:import st:amapParam ;
    st:title "Alpes-Maritimes";
    st:departement (06) ;
    #st:region ("Provence-Alpes-Côte d'Azur" ) ;
    #st:exclude (map:BorneFrontière map:Mégalithe)
    #st:include (map:Nature)

] .

st:borne a st:Server ;
st:service "borne" ;
st:shareContent st:mapContent ;
st:workflow st:mapwf ;
st:param [
    st:import st:amapParam ;
    st:title "Borne Frontière";
    st:region ("Alpes" ) ;
    st:exclude (map:BorneMilliaire);
    st:include (map:Borne) ;
    st:queries (st:intro st:indexAll st:indexPositionLabel st:indexPositionCom)

] .

st:mega a st:Server ;
st:service "mega" ;
st:shareContent st:mapContent ;
st:workflow st:mapwf ;
st:param [
    st:import st:amapParam ;
    st:title "Mégalithe";
    st:include (map:Mégalithe);
    st:queries (st:intro st:indexAll st:indexPositionLabel st:indexPositionCom)

] .

st:nature a st:Server ;
st:service "nature" ;
st:shareContent st:mapContent ;
st:workflow st:mapwf ;
st:param [
    st:import st:amapParam ;
    st:title "Nature";
    st:include (map:Nature);
    st:queries (st:intro st:indexAll st:indexPositionLabel st:indexPositionCom)
] .

st:eau a st:Server ;
st:service "eau" ;
st:shareContent st:mapContent ;
st:workflow st:mapwf ;
st:param [
    st:import st:amapParam ;
    st:title "Eau";
    st:include (map:Eau);
    st:queries (st:intro st:indexAll st:indexPositionLabel st:indexPositionCom)
] .

st:culture a st:Server ;
st:service "culture" ;
st:shareContent st:mapContent ;
st:workflow st:mapwf ;
st:param [
    st:import st:amapParam ;
    st:title "Culture";
    st:include (map:Culture);
    st:queries (st:intro st:indexAll st:indexPositionLabel st:indexPositionCom)

] .

st:antique a st:Server ;
st:service "antique" ;
st:shareContent st:mapContent ;
st:workflow st:mapwf ;
st:param [
    st:import st:amapParam ;
    st:title "Antiquité";
    st:include (map:Antiquité);
    st:queries (st:intro st:indexAll st:indexPositionLabel st:indexPositionCom)

] .



st:amapParam
st:param [
    #st:debug true;
    st:textDefault false;
    st:lang 'en' ;
    # transformation for the result of the query in the st:web transformation
    st:sttl spq:result ;
    # list of transformations for the st:combine transformation
    #st:transformations (spq:result) ;
    st:lodprofile (
        (   st:sparql) 
        ("*" st:lod)
    ) ;
    st:mapzoom 3 ;
    st:mapsize "mapmedium" ;
    st:hyperlink true ; 
    st:title "Semantic Map";
    st:prefix (("map" map:)) ;
    st:export true ;
    # do not focus sttl result on st:uri because it is the URI of the query not of a target resource
    st:focus false ;
    st:umap   ;
    st:umap1  ;
    st:umap2  ;
    st:height 120;
      
    st:umapelse 
    ] 
.


st:mapwf a sw:Workflow ; 
sw:body (
    #[ a sw:Query ; sw:result sw:graph ] # place holder where to put the query to be executed from the tutorial
    [ a sw:Query ; sw:result sw:graph ; st:processquery us:preprocessQuery] # place holder where to put the query to be executed from the tutorial
    
    #[ a sw:Transformation ; sw:uri st:myweb ]
    #[ a sw:Transformation ; sw:uri  ]
    [ a sw:Transformation ; sw:uri  ]
)
.




st:mapContent a sw:Workflow ; 
sw:body ( 
    [ a sw:Load ; sw:path  ]
    [ a sw:Parallel ; sw:body ( 
      # main is empty

      [ a sw:Workflow ; sw:body ( 
        [ a sw:Load ; sw:path  ]         
       ) ]
      
      # context dataset with predefined queries in a specific graph
      [ a sw:Workflow ; sw:name st:context ; sw:body ( 
        [ a sw:Load  ; sw:path   ; sw:name st:context ]
        st:indexQuery ) ]
                	  
      ) ]  
      
    # set st:context graph as named graph of main
    [a sw:Dataset]
).










© 2015 - 2025 Weber Informatics LLC | Privacy Policy