메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


1. insert(endpoint : http://gsda:23030/icbms/update)


prefix qudt: <http://data.nasa.gov/qudt/owl/qudt#> 
prefix quantity: <http://data.nasa.gov/qudt/owl/quantity>  
prefix unit: <http://data.nasa.gov/qudt/owl/unit#> 
prefix dim: <http://data.nasa.gov/qudt/owl/dimension#> 
prefix b: <http://www.onem2m.org/ontology/Base_Ontology#> 
prefix herit: <http://herit-in/herit-cse/>
prefix o: <http://www.iotoasis.org/ontology/>
prefix swrlb: <http://www.w3.org/2003/11/swrlb#> 
prefix protege: <http://protege.stanford.edu/plugins/owl/protege#>
prefix ssn: <http://purl.oclc.org/NET/ssnx/ssn#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix dct: <http://purl.org/dc/terms/
prefix dc: <http://purl.org/dc/elements/1.1/
prefix j.0: <http://data.qudt.org/qudt/owl/1.0.0/text/
prefix owl: <http://www.w3.org/2002/07/owl#> 
prefix xsp: <http://www.owl-ontologies.com/2005/08/07/xsp.owl#> 
prefix swrl: <http://www.w3.org/2003/11/swrl#> 
prefix skos: <http://www.w3.org/2004/02/skos/core#> 
prefix dul: <http://www.loa-cnr.it/ontologies/DUL.owl#> 
prefix cc: <http://creativecommons.org/ns#> 
prefix p1: <http://purl.org/dc/elements/1.1/#> 
prefix foaf: <http://xmlns.com/foaf/0.1/
prefix xsd: <http://www.w3.org/2001/XMLSchema#> 
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>  
prefix qudt: <http://data.nasa.gov/qudt/owl/qudt#> 
prefix quantity: <http://data.nasa.gov/qudt/owl/quantity>  
prefix unit: <http://data.nasa.gov/qudt/owl/unit#> 
prefix dim: <http://data.nasa.gov/qudt/owl/dimension#> 
prefix b: <http://www.onem2m.org/ontology/Base_Ontology#>   
prefix herit: <http://herit-in/herit-cse/>
prefix o: <http://www.iotoasis.org/ontology/>


#단건을 처리하는 경우

insert data {<http://www.iotoasis.org/herit-in/herit-cse/ONDB_Blind01_002> a o:ApplicationEntity . }


2. delete(endpoint : http://gsda:23030/icbms/update)

prefix qudt: <http://data.nasa.gov/qudt/owl/qudt#> 
prefix quantity: <http://data.nasa.gov/qudt/owl/quantity>  
prefix unit: <http://data.nasa.gov/qudt/owl/unit#> 
prefix dim: <http://data.nasa.gov/qudt/owl/dimension#> 
prefix b: <http://www.onem2m.org/ontology/Base_Ontology#> 
prefix herit: <http://herit-in/herit-cse/>
prefix o: <http://www.iotoasis.org/ontology/>
prefix swrlb: <http://www.w3.org/2003/11/swrlb#> 
prefix protege: <http://protege.stanford.edu/plugins/owl/protege#>
prefix ssn: <http://purl.oclc.org/NET/ssnx/ssn#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix dct: <http://purl.org/dc/terms/
prefix dc: <http://purl.org/dc/elements/1.1/
prefix j.0: <http://data.qudt.org/qudt/owl/1.0.0/text/
prefix owl: <http://www.w3.org/2002/07/owl#> 
prefix xsp: <http://www.owl-ontologies.com/2005/08/07/xsp.owl#> 
prefix swrl: <http://www.w3.org/2003/11/swrl#> 
prefix skos: <http://www.w3.org/2004/02/skos/core#> 
prefix dul: <http://www.loa-cnr.it/ontologies/DUL.owl#> 
prefix cc: <http://creativecommons.org/ns#> 
prefix p1: <http://purl.org/dc/elements/1.1/#> 
prefix foaf: <http://xmlns.com/foaf/0.1/
prefix xsd: <http://www.w3.org/2001/XMLSchema#> 
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>  
prefix qudt: <http://data.nasa.gov/qudt/owl/qudt#> 
prefix quantity: <http://data.nasa.gov/qudt/owl/quantity>  
prefix unit: <http://data.nasa.gov/qudt/owl/unit#> 
prefix dim: <http://data.nasa.gov/qudt/owl/dimension#> 
prefix b: <http://www.onem2m.org/ontology/Base_Ontology#>   
prefix herit: <http://herit-in/herit-cse/>
prefix o: <http://www.iotoasis.org/ontology/>


#단건을 처리하는 경우

delete data {<http://www.iotoasis.org/herit-in/herit-cse/ONDB_Blind01_002> a o:ApplicationEntity . }


or


#여러건을 처리하는 경우

delete {?s a o:ApplicationEntity . }
 where{
 ?s a o:ApplicationEntity ;
    filter(?s = <http://www.iotoasis.org/herit-in/herit-cse/ONDB_Blind01_002>)   
}


위로