XML samples of BACnet/WS, standard 135-2012? - bacnet

I have been reading about Bacnet/WS in ANSI/ASHRAE Standard 135-2012.
Does anyone have some XML samples of how the request and response should look like?
E.g how should the request for getValue look like and how should its response look like?

There are some examples in Addendum 135-2012am and much more specification of the general "BACnet/HTTP" stuff. Note that the addendum is currently a draft but I guess it will improve the ASHRAE Standard 135-2012 official soon.
See also the 1st Advisory for more information.

Related

Real world examples of DAAST (IAB Standard-Digital Audio Ad Serving Template)

I am looking for real world examples of DAAST tags being trafficked. Anyone know of any audio players that have adopted the new standard yet?
I'm looking at Pandora, iHeartRadio and I'm still seeing VAST tags for advertisements (4-22-2015).
http://www.iab.net/DAAST
I know it's not a great question, but please if any information let me know it's appreciated.
EDIT: Doesn't look like anyone is using DAAST yet will keep this updated. Tried: Pandora, Tunein, iheartRadio, triton, spotify, radio.com, rdio. Triton on their website says they are DAAST compliant, but no DAAST observed there.
I think this it is extremely new format.
Date of publication of official article is 22.01.2015
I can't found any implementation in real web-players in this time :(
Triton Digital did support DAAST day 1... players need to specifically request this format as the default is VAST (and remained as such for backwards compatibility). Most of the advantages of DAAST are leveraged in server-to-server interfaces.

How to implement Knowledge graph

I'm looking forward to implement something like google direct answers which uses knowledge graph, is there any useful resource can I read ? also Where can I find data for that?
Thanks in advance
From the semantic web aspect of your question i guess an interesting starting point for you is the DBpedia (example queries) dataset, maybe in combination with the strings to Wikipedia concepts dataset.
I am excited for this free class: Probabilistic Graphical Models - Daphne Koller, Professor. I would look her up and watch her youtube videos in the mean time.

Available options for playing a stream or a remote mp3 file on iOS 4

I am trying to make an application for listening to podcasts. Each podcast is an mp3 file, around 50MB in size. After reviewing the Using Audio chapter of the Multimedia Programming Guide, I decided to use AVPlayer, as the other options did not seem appropriate. However, the more I work with AVFoundation, the more complicated it seems and I have a feeling that simply streaming an mp3 file should be easier. Plus on the top of this document, there is a note stating:
Important: This document contains
information that used to be in iOS
Application Programming Guide. The
information in this document has not
been updated specifically for iOS 4.0
Does that mean that I have some other options, or that AVFoundation is maybe an overkill for what I need to do? I would really appreciate it if someone could clear things out a bit and let me know if I'm making something wrong here.
Thanks in advance!
You should explore Cocos Denshion.
http://www.cocos2d-iphone.org/wiki/doku.php/cocosdenshion:cookbook
The audio engine comes with cocos2d, and it is just 5 classes you can include with your project.
It's very simple to use, as you can see from the above link. It's basically just a wrapper for some AVFoundation classes.
The only trick will be to stream your mp3, but it looks like you can simply update the Cocos Denshion CDAudioManager to hand a URL to the AVAudioPlayer, as a start. Whether or not that satisfies your streaming requirement, I don't know.
At the very least, it will give you some AVFoundation code to study.
I just found a pdf with a nice overview of some possible options from this course blog. Together with Julian's suggestion this is all I could find so far.

q2q protocol specification

Where can I find a complete specification of the q2q protocol? I wanna try implementing it on my own also to see difference between q2q and p2p but I can't find a complete documentation.
It looks (to me) like Q2Q is just a term for the data transmission scheme[1] implemented by Vertex. And as vertex is work in progress, it is a moving target.
A good bet is to have a look at the current implementation:
http://buildbot.divmod.org/apidocs/vertex.q2q.html
[1] I am reluctant to call it a protocol until we actually unearth a specification for it. ;)

Wikipedia text download

I am looking to download full Wikipedia text for my college project. Do I have to write my own spider to download this or is there a public dataset of Wikipedia available online?
To just give you some overview of my project, I want to find out the interesting words of few articles I am interested in. But to find these interesting words, I am planning to apply tf/idf to calculate term frequency for each word and pick the ones with high frequency. But to calculate the tf, I need to know the total occurrences in whole of Wikipedia.
How can this be done?
from wikipedia: http://en.wikipedia.org/wiki/Wikipedia_database
Wikipedia offers free copies of all available content to interested users. These databases can be used for mirroring, personal use, informal backups, offline use or database queries (such as for Wikipedia:Maintenance). All text content is multi-licensed under the Creative Commons Attribution-ShareAlike 3.0 License (CC-BY-SA) and the GNU Free Documentation License (GFDL). Images and other files are available under different terms, as detailed on their description pages. For our advice about complying with these licenses, see Wikipedia:Copyrights.
Seems that you are in luck too. From the dump section:
As of 12 March 2010, the latest complete dump of the English-language Wikipedia can be found at http://download.wikimedia.org/enwiki/20100130/ This is the first complete dump of the English-language Wikipedia to have been created since 2008.
Please note that more recent dumps (such as the 20100312 dump) are incomplete.
So the data is only 9 days old :)
If you need a text only version, not a Mediawiki XML, then you can download it here:
http://kopiwiki.dsd.sztaki.hu/
Considering the size of the dump, you would probably be better served using the word frequency in the English language, or to use the MediaWiki API to poll pages at random (or the most consulted pages). There are frameworks to build bots based on this API (in Ruby, C#, ...) that can help you.
http://en.wikipedia.org/wiki/Wikipedia_database#Latest_complete_dump_of_english_wikipedia
See http://en.wikipedia.org/wiki/Wikipedia_database
All the latest wikipedia dataset can be downloaded from: Wikimedia
Just make sure to click on the latest available date
Use this script
#https://en.wikipedia.org/w/api.php?action=query&prop=extracts&pageids=18630637&inprop=url&format=json
import sys, requests
for i in range(int(sys.argv[1]),int(sys.argv[2])):
print("[wikipedia] getting source - id "+str(i))
Text=requests.get("https://en.wikipedia.org/w/api.php?action=query&prop=extracts&pageids="+str(i)+"&inprop=url&format=json").text
print("[wikipedia] putting into file - id "+str(i))
with open("wikipedia/"+str(i)+"--id.json","w+") as File:
File.writelines(Text)
print("[wikipedia] archived - id "+str(i))
1 to 1062 is at https://costlyyawningassembly.mkcodes.repl.co/.

Resources